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
Post a Comment