android - How to retrieve specific activity instance from backstack? -


i have 2 activities, activity_a (set single task) , activity_b (set default).

activity_a task affinity different activity_b: has multiple instances activity_b(1) , activity_b(2) ) now. if make intent (with flag_activity_new_task) b, b(1) on top of stack, goes a, leaving b(1) on stack. make intent activity_b, therefore, stack this:

b(2) <-- b(2) on top of stack. b(1)

then have go again activity_a, leaving (b1) , b(2) on stack.

my question is: how b(1)? use flag_activity_reorder_to_front and/or flag_activity_clear_top, gone (b2). there possible way stack index array or something, can use trace activities in stack?


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -