Use of Activity methods
-
29-10-2019 - |
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
Here the official documentation: http://developer.android.com/guide/topics/fundamentals/activities.html
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow