android - Flag similar to FLAG_ACTIVITY_CLEAR_TASK in API 8 -


my app has activity triggers b , b in turn triggers c.

activity launcher intent flag android:nohistory="true" in manifest file. shows splash screen. after 2 seconds triggers b intent flag flag_activity_no_history. b triggers c without intent flag. stack have activity c.

in activity c, whenever pressed trigger activity b. stack should have activity b alone. should not have trace of other activity.

i have used following code in activity c. flag flag_activity_new_task available api 11. app should supporting devices api 8. kindly assist me correct intent flags achieve explained scenario

code:

         intent dragdropintent = new intent("android.intent.action.dragdrop");           dragdropintent.addflags(intent.flag_activity_clear_task);          dragdropintent.addflags(intent.flag_activity_new_task); 

i agree starting activity c without nohistory help. t technical constraints don't want that. in advance

if c goes b, should not use flag_activity_no_history. when user backpress in c, c finished os , stack has b.


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -