Question

Can someone neatly explain the use of following Activity methods :

  • onStart

  • onResume

  • onPause

  • onStop

  • onDestroy

  • onRestart

I know these are basic methods one should know while programming in Android. But frankly I have not been able to implement these methods in my applications in a wise way.

Stone

OTHER TIPS

You're forgetting probably the most important, onCreate. Try reading up on this: http://developer.android.com/reference/android/app/Activity.html#ActivityLifecycle

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top