onPause() called, onSaveInstanceState(...) not


If I hit the home button, LogCat shows onPause() called, onSaveInstanceState called, onStop() called. When I hit the back button, LogCat shows onPause() called, onStop() called, onDestroy() called. I’m wondering if I am not understanding something because I see in the book it says “If an activity is paused or stopped, then its onSaveInstanceState(…) method has been called.” Why when I hit the home button is onSaveInstanceState called after onPause(), but when I hit the back button onSaveInstanceState is not called after onPause()?



See http://stackoverflow.com/questions/5166201/android-onsaveinstancestate-and-onpause and other similar questions on stackoverflow.