I am trying to start AppB from AppA. On activity of AppB I issue:
Intent i = new Intent();
i.setAction(\"START_APPB\");
i.addFlag
I ran into this and found out that this is a bug in android. At some point in history this two flags - FLAG_ACTIVITY_NEW_TASK
and FLAG_RECEIVER_BOOT_UPGRADE
- get the same numeric value because some android developer changed one of their values without checking that it is already taken by another flag. The latest version (4.4) seems to have it fixed already.
Do not use any FLAG_ACTIVITY_
constant with sendBroadcast()
.
When populating your Intent, do:
intent.setFlags(0);