android - Remove just last instance of an activity from stack -


i have application 2 activities , b, main activity , b called can called b itself.

so stack like

a,b0,b1,b2,b3

in cases want able remove last instance of b, [android:nohistory="true"] won't work.

a,b0,b1,b2,b3 => a,b0,b1,b2,b4

how can accomplish this?

the below lines finish activity in working , start same activity:

 finish();  startactivity(getintent()); 

Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

unity3d - Fatal error- Monodevelop-Unity failed to start -