|
Hello, I was wondering what is the intent for downloading URLs? In the browser, it will download stuff with a little notification icon. I was wondering if I can use that intent (and what it is). Thanks, Isaac Waller
Started by Isaac Waller on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
If you want to download a package then ACTION_PACKAGE_INSTALL should do what you want. .
What are you trying to do? If your app wants to download a file you can use the UrlConnection code .
Have a look here at all the Android Intents.
|
|
So now I have my BroastcastReceiver declared in the manifest file...
<receiver android:name=".MyReceiver"> <intent-filter> <action android:name="android.intent.action.CALL_BUTTON" /> </intent-filter> </receiver>
I want to...
Started by Eclipsed4utoo on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Alternatively, you could include the same intent-filter on an Activity....
It can be used in an Intent used in startActivity to launch an Activity that should respond, and the system doesn't broadcast an Intent to announce that.
Action".
|
|
Hey Guys
At the moment I am using two intents. One for voice-recording, another for the camera:
Intent photoIntent = new Intent("android.media.action.IMAGE_CAPTURE"); startActivityForResult(photoIntent, ACTIVITY_TAKE_PHOTO); Intent voiceIntent = new Intent...
Started by Ripei on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
I am not sure but my first thought would be to set the data uri of the intent and see if that does yanokwa :
// fire off the intent Intent i = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE.
|
Ask your Facebook Friends
|
This is a SR4 fic incorporating elements of the ongoing SR4 game I'm playing in, and decided to post and get some feedback on.
Denver, Front Range Free Zone, Confederate American States, 2:35 am, June 22, 2072
Rain hammered against the windows, its drumbeat...
Started by Mayabird on
, 12 posts
by 5 people.
Answer Snippets (Read the full thread at stardestroyer):
His skinlink allowed him access the ‘....
Views and not a single comment? Not even a lobbed tomato or rotten egg?
6:05 am
Nails’ eyes snapped open, noting absently that last night’s storm still hammered at the windows as his fingers found his commlink .
|
|
Im trying to react to intent ACTION_CAMERA_BUTTON (intent that signalies that the camera button was pressed).
getApplicationContext().registerReceiver( new PictureTest(), new IntentFilter(Intent.ACTION_CAMERA_BUTTON) ); public class PictureTest extends...
Started by Schildmeijer on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
I see.
Some broadcast Intent s work with either mechanism, some only work with one.
RegisterReceiver().
|
|
Hi all,
I'm starting to learn how to develop apps for Android, and I'm having some issues with intents--it just doesn't seem like they're documented at all . All I want to do is send the user to the video recorder, where they record a video, and the video...
Started by Kyle Slattery on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
You might want to check out.
For recording video, check out the ACTION_VIDEO_CAPTURE intent action defined by the Media provider.
There's a list of common intent actions in the Intent class reference .
|
|
Hi
I have an application, which sets an alarm using AlarmManager, which starts another Activity when it goes off. The AlarmManager takes a PendingIntent and spawns a BroadcastReceiver class when the specified time comes. I'm wondering whether there is...
Answer Snippets (Read the full thread at stackoverflow):
In the extras of an Intent wrapped around a PendingIntent and then retrieve them using the Intent extras you supply on the Intent actually get used..
|
|
Hi,
I created a broadcast receiver in the main activity and the background service which is sending broadcast intents. The application crashes each time I try to run it and the Log displays the following error message:
10-04 13:30:43.218: ERROR/AndroidRuntime...
Started by niko on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
If you parameter to that API call -- do not also put an <intent-filter> element in the <activity>.
You have two Intent filters; you only need one.
The base class's constructor when necessary.
|
|
I have a small application which can be used to set reminders for future events. The app uses an AlarmManager to set the time for when the user should be reminded. When the alarm goes off, a BroadcastReceiver registers this and in turn starts a service...
Started by aspartame on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Note that you might want to also evaluate FLAG_CANCEL_CURRENT if you are concerned about outstanding entities. .
Try adding FLAG_UPDATE_CURRENT to your PendingIntent when you create it via getBroadcast() .
|
|
This is what I would like to do :
=> IF WiFi is enabled AND active, launch an intent (in fact it's a WebView that gets its content=>the instructions of my app on the web)
=> IF NOT, then I would launch another intent so that I don't show a WebView...
Started by Hubert on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
You can do it as follows:
@Override public void onReceive(Context context, Intent intent.
Point.
|