I have BroadCastReceiver BCR registered for action string S in app App#1
From app App#2 I broadCast intent with correct action string (S)
If app App#2 was already opened.. intent is received meaning onReceive() from BCR is called
@Override
public void onReceive(Context context, Intent intent) {
System.err.println("### ### MyBroadcastReceiver ### onReceive()");
If App#2 was Forced Closed (from Setting-Applications) or never oppened (fresh restarted device)
same broadcast with same action string (S) does not reach my broadCastReceiver BCR
Code for broadcasting intent (note no flags.. didnt know if its needed.. & that string is S)
String action = "customActionString.something";
Intent intent = new Intent(action);
context.sendBroadcast(intent);
What am I missing? Is this a Tag problem?
Correct.
An activity, perhaps.
Quoting Dianne Hackborn:
This was described somewhat poorly in the Android 3.1 release notes.