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

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -