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

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -

php - Prepared Statement Inner Join Cannot Pass Parameter by Reference -

c# - Value cannot be null or empty.\r\nParameter name: name -