java - Android studio finish(); doesnt kill the activity and it is running in background -


i have multiple activities on android application.

when jump 1 activity next activity finish(); previous activity still running in background , creates issue application.

how can stop activity stop running???

open each activity this. finish current 1 , should stop them stacking.

    intent intent = new intent(this, yourmainactivity.class);     startactivity(intent);     finish(); 

Comments

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -