I want to end my activity when it is suspended for certain reasons. Until recently, my code worked fine, but recently the finish() method has stopped doing its job for some reason. Also, when the finish() method is called, I get the following LogCat message:
12-31 18:01:23.445: W/ActivityManager(481): Duplicate finish request for ActivityRecord{42465370 u11 "myapplicationpackage"}
Can anyone help me with this?
OnPause() method
@Override protected void onPause() { super.onPause(); finish(); }
Tanuj Nayak
source share