Intent not received

Put your problem here if it does not fit any of the other categories.

Intent not received

Postby chris » Fri Mar 21, 2008 7:02 pm

Hi I have a little problem with intents and intentreceiver

I have an application that stay at top and a service running in the background.

I'm trying to broadcast an intent from the service to the activity.

i'm broadcasting the intent from the service with this code :
Log.i(TAG,"Message : USER_ID :"+res.elementAt(0));

Intent intent= new Intent( RECEIVED_MESSAGE_INTENT);
BundledMessage msg=new BundledMessage(res);

in my activity , i have an intentreceveir as an innerclass , an intentfilter and i'm registering the intent with this code :in onCreate() :
myIntentFilter=new IntentFilter();
this.myIntentReceiver = new MyIntentReceiver();
this.registerReceiver(this.myIntentReceiver, this.myIntentFilter);

class MyIntentReceiver extends IntentReceiver {
public void onReceiveIntent(Context context, Intent intent) {
Log.v(TAG, "intent:"+intent.getAction());



I see the log before sending the intent and no exception so the intent should be brodcasted , but the intent is never cought by the intent receiver as i never see anything in the log (i should see the name of the intent).

Does anyone see what did i miss ?

Junior Developer
Junior Developer
Posts: 18
Joined: Sat Feb 02, 2008 4:39 pm


Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 10 guests