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

Load Balancing in Bluemix using custom domain and DNS SRV records -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -

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