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);
intent.putExtras(msg.getBundle());
broadcastIntent(intent);
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();
myIntentFilter.addAction(MessagesRetrieverService.RECEIVED_MESSAGE_INTENT);
this.myIntentReceiver = new MyIntentReceiver();
...
this.registerReceiver(this.myIntentReceiver, this.myIntentFilter);
class MyIntentReceiver extends IntentReceiver {
@Override
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 ?
Chris


