android - Start Activity and don't destroy other activity -


i new android , started activities - b - c - d. activity d, when open activity again how can start activities b , c don't finish , starts again? there should 1 activity a.

thanks in advance.

use intent flag flag_activity_reorder_to_front

in d

intent = new intent(activityd.this, activitya.class); i.setflags(flag_activity_reorder_to_front); startactivity(i); 

this bring activitya front of stack , leave b , c believe want. can call finish() on d if want remove stack.

you can find available flags in intent docs


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -