Today i am gonna ask a question and later we will try to answer that :p
Observations: Well we understood that when we hit the home or multitask button, the current Activity goes to background, but before going to background it called onPause() method for sure.
Question 1: Unfortunately this method also gets called
1. when the user close the application forcefully
2. when Android it self destroy the Activity.
3. when user hits the back button
So curious minds want to know, how can i distinguishes among them.
Understanding Android Activity Lifecycle (Part Four)