Вопрос

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

Другие советы

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

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top