I got confused after reading the Android doc about isFinishing() at http://developer.android.com/reference/android/app/Activity.html.
If I call isFinishing() in onPause(), what would the return value of the isFinishing() call be in the following 3 scenarios?
- Activity is killed due to
finish()being called. - An activity is not in the foreground and the activity (not the app) is being killed by the OS due to low memory.
- Activity is going to the background.
I am sure that the result of isFinishing() will be true in scenario 1 and will be false in scenario 3.
How about scenario 2? Will isFinishing() return true or false in scenario 2?