Hi,
I was wondering is it possible to register a broadcast receiver to receive two intents?
My code is as follows:
sipRegistrationListener = new BroadcastReceiver(){
@Override
public void onReceive(Context context, Intent intent) {
String action = intent.getAction();
if(SIPEngine.SIP_REGISTERED_INTENT.equals(action)){
Log.d("SE...
Hi all,
I am currently firing an Intent to a Broadcast Receiver which in turns starts an Activity.
Then from the same Service another Intent is fired to a Broadcast Receiver thats in the Activity.
The problem is that the Activity isn't getting the Intent meant for it because it is fired before it is alive and the Broadcast Reciever is...
Hi all,
I have started using custom intents in my application and I have come across a bit of a problem.
When I send a custom intent I register a Broadcast Receiver and I catch the intent no problem.
However problems seem to appear when I send the intent again, the Broadcast Reciever seems to register two events of the intent and so o...
"I am writing an android 1.5 application which starts just after boot-up.
This is a service and should take a picture without preview. This app will log the light density in some areas whatever. I was able to take a picture but the picture was black.
After googling like crazy, i came across a bug thread about it. If you don't generate a...
Hi,
i want to launch my service with a voice command like the name of the app. Is it possible, can i listen such an event? I am affraid not but who knows. Thanks in advance.
...
Hi all,
It is easy to find on google which is the broadcast receiver to listen for sms messages. Is there also a similar receiver to listen for gtalk messages or new emails?
Thanks
...
Is it possible to receive an explicit intent with the component option set?
Example:
Starting activity: Intent { action=android.intent.action.VIEW data=http://example.org flags=0x10000000 comp={com.android.browser/com.android.browser.BrowserActivity} }
The reason why i want to this this is because i want receive this intent above, lau...
I have a reciever that works well, but I can't seem to show a proper UI, although the toast appears correctly. As far as I can tell, this is caused by Android requiring the class to extend Activity, however, the class already extends BroadcastReciever, so I can't do this.
So, I tried to do an Intent, but this failed too. There are no err...
I'm trying to get a BroadcastReceiver invoked when the screen is turned on. In my AndroidManifest.xml I have specified :
<receiver android:name="IntentReceiver">
<intent-filter>
<action android:name="android.intent.action.SCREEN_ON"></action>
</intent-fi...
Hi,
I have a intent receiver in my android manifest, but would like to give the user the opportunity to choose whether he/her wants the app to automatically start at the specific state. Until now, I've used a service with a broadcast receiver, but I really want to delete this service as it seems a bit unnecessary.
Can register the inte...
I've got an Android application which needs to be woken up sporadically throughout the day.
To do this, I'm using the AlarmManager to set up a PendingIntent and have this trigger a BroadcastReceiver. This BroadcastReceiver then starts an Activity to bring the UI to the foreground.
All of the above seems to work, in that the Activity la...
I'm currently exploring Broadcast Receivers and Broadcast Intent. There are some aspects of the tutorials which are ambiguous to me. To my knowledge this is how the process works. I can broadcast an intent from my application and any receiver on the phone can act on that intent as long as the actions match. I can register a broadcast...
Hi,
I have a strange problem. To detect outgoing calls I have registered a broadcast receiver for android.intent.action.PHONE_STATE. When the state becomes OFFHOOK, then a conversation is started. It seems working on emulator: the debugger in fact reaches some code while it doesn't work on real device (Acer Liquid). Is it possible?
Wh...
Does Android broadcast an intent when the network state has changend, i.e. from GSM to Wifi? And if so what permission do I need and what is the intent action called?
...
I have a class that extends Application. In the class I make a call to AlarmManager and pass in an intent. As scheduled my EventReceiver class, that extends BroadcastReceiver, processes the call in the onReceive method. How would I call the intent again from the onReceive method to schedule another event?
...
Is it possible to set the priority attribute of a BroadcastReceiver programmatically or can it only be done in XML?
Relevant documents include:
http://developer.android.com/reference/android/content/BroadcastReceiver.html
http://developer.android.com/reference/android/R.styleable.html
It doesn't seem so, but I don't fully understand t...
I have a BroadcastReceiver which loads data from the Internet and then it should send them back to a Widget. But how can I do this?
What I've already done is updating the Widget directly from the Broadcast, but I like to just send de data back.
public class UpdateManager extends BroadcastReceiver {
@Override
public void onRece...
I've been trying to start a service when a device boots up on android, but I cannot get it to work.
I've looked a number of links online but none of the code is working. Am I forgetting something? This is my code.
Manifest
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<receiver android:name=".StartSer...
Ok so I have two BroadcastReceiver registered. When the app is closed they both fire at the appropriate times and do the appropriate things.
If the app is closed then killed (say with an AppKiller), the receivers never receive their broadcasts, and nothing happens.
Presumably the same thing happens if the parent app is killed due to ...
Essentially, I just want to change the home button from just hiding my app to killing the activity that is on the screen.
I thought about writing a broadcast receiver that kills the activity, but I'm not sure how to kill the activity from the receiver.
How do I change the functionality of the home button to "finish" the specific acti...