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

iis - ASP.Net Core CreatedAtAction in HttpPost action returns 201 but entire request ends with 500 -

gcc - Neither ld wrap nor LD_PRELOAD working to intercept system call -

ssh - Vagrant Windows - ssh_exchange_identification: read: Connection reset by peer -