The scenario is:
launch app, start activity A, navigate to B, then to C press home button. C gets destroyed. Bring up task manager, press on my app's icon. Activity C is being recreated. How can I make this behaviour cease ? What I would like would be to go back to activity A.
The closest I could get to this was by launching activities B,C with Intent.FLAG_ACTIVITY_NO_HISTORY. But the problem with this flag is that it prevents activities B,C from ever being re-created throughout the app's life (they should be creatable once task manager leads user to A).
EDIT: same behaviour observed as in Intent.FLAG_ACTIVITY_NO_HISTORY case if I use this approach instead:
class C extends Activity
{
...
@Override
protected void onDestroy()
{
// last resort
finish();
super.onDestroy();
//finish();
}
}
I can not navigate back to activity C once it its onDestroy() has been called once :(
Thanks