forceclose - activity auto restart when i try to close android application -


i have 3 activities (a, b, c). activity circle => b, b => c, c => when start activity c activity b complete don't call finish() function on b activity. when start activity c activity complete finish() function on c activity. in activity implement button close application use code:

android.os.process.killprocess(android.os.process.mypid()); 

i want close app application restart b activity

android.os.process.killprocess(android.os.process.mypid());  

wont kill activity. must use clear_top flags in intent. or must use this method finish ur b activity c activity if needed. thing use finish() inside onrestart overide method in b activity.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -