I have my launcher activity (A) set to "singleTop".
Now there is something in notification bar. User clicks on it. So I start activity in receiver with
Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK
So A's onNewIntent is invoked and I start activity C based on extras in intent.
User go back to A(back key) and to other activity D. And then home key.
Now when I long press home. And relaunch my application and step 3 repeats. and user goes to C. where actually user should have gone to D
Asked
Active
Viewed 1,008 times
1

Rahul
- 1,403
- 4
- 18
- 31
2 Answers
0
Add android:launchMode="singleInstance"
in Activity D (in the menifest file). And then check the app behaviour.

Atul Bhardwaj
- 6,647
- 5
- 45
- 63
0
Somehow , when you press Long home and restart the activity , the extras parameters are lost.Only the data parameter is preserved.

Alok Kulkarni
- 2,153
- 19
- 31