Thank kostya. You are helping me from long time.
But where should i set that flag FLAG_ACTIVITY_REORDER_TO_FRONT ?
I call
Intent intent = new Intent().setClass(context, A.class);
startActivity(intent);
Or
Intent intent = new Intent().setClass(context, B.class);
startActivity(intent);
to start
Use this flag when re-starting A from B:
Intent intent = new Intent(this, A.class);
intent.addFlag(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);
startActivity(intent);
See this for an explanation:
http://blog.akquinet.de/2010/04/15/android-activites-and-tasks-series-intent-flags/
-- Kostya
2 matches
Mail list logo