Pergunta

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

Outras dicas

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

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top