As you say, onPause() and onResume() are by far the most commonly called. 
But if you run your app on a G1, and run it with other apps, you will see 
onStop() and onDestroy() called. You should also see onDestroy() called 
whenever the user presses the Back button, which calls finish(); but when 
finish() is called, the system calls onDestroy()

See eveloper.android.com/guide/topics/testing/testing_android.html, which 
says, inter alia: "If the Activity code calls the *finish*() method, the *
onDestroy*() method is called ."

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to