Different States of an Android Activity

+154 Bucky Roberts · December 19, 2014
/images/forum/upload/2014-12-19/5a00eeefae97a8d127f621fdc5ad2ff7.png


   @Override
   protected void onStart() {
       super.onStart();
       Log.i(TAG, "onStart");
   }


   @Override
   protected void onResume() {
       super.onResume();
       Log.i(TAG, "onResume");
   }


   @Override
   protected void onPause() {
       super.onPause();
       Log.i(TAG, "onPause");
   }


   @Override
   protected void onStop() {
       super.onStop();
       Log.i(TAG, "onStop");
   }


   @Override
   protected void onRestart() {
       super.onRestart();
       Log.i(TAG, "onRestart");
   }


   @Override
   protected void onDestroy() {
       super.onDestroy();
       Log.i(TAG, "onDestroy");
   }


   @Override
   protected void onSaveInstanceState(Bundle outState) {
       super.onSaveInstanceState(outState);
       Log.i(TAG, "onSaveInstanceState");
   }


   @Override
   protected void onRestoreInstanceState(Bundle savedInstanceState) {
       super.onRestoreInstanceState(savedInstanceState);
       Log.i(TAG, "onRestoreInstanceState");
   }

Post a Reply

Replies

- page 3
Oldest  Newest  Rating
0 Alex Gi · April 23, 2017
Thank for your great post.
I have been able to create my first Android app after reading, and in addition, I would like to suggest everybody to check out http://quizbucket.org/quiz/android for android quiz and interview questions, it may be helpful for one who is preparing for a job interview
0 Ashraf Qandeel · August 16, 2015
Thanks alot....
0 Onye Ashikodi · November 10, 2015
Hello Bucky, Thanks for this tutorial and all. Before watching this, Android studio always appear overwhelming. You must have put a lot of effort making this video. But for crying out loud- Why! Why!! Why do you belch to the mic, it's pretty disrespectful.  
0 Chiagozie Ogbonna · April 23, 2017
AWESOME! thanks.
0 Waqar Ahmad · August 23, 2015
Bucky bro checkout Tag error. Reply soon
0 Waqar Ahmad · August 23, 2015
Check this "Tag" error plz
0 Lester Rodriguez · August 29, 2015
Man,
You're awesome!
Pretty sweet.
Just having fun with your tutorials
and learning as well.
0 Akshay Pimpalkar · February 3, 2016
i found these question marks on ur code. What does it mean?/images/forum/upload/2016-02-03/0ece4ed455921192ec6688b6269e2896.png 
0 Guangyu Hu · April 23, 2017
Thank you very much. It's pretty sweet for new comers like me.
0 Sharad Gupta · February 22, 2015
Thanks for the Source Code. Just began watching tutorials. They are awesome :) !!

Java / Android Development

126,440 followers
About

Very popular language used to create desktop applications, website applets, and Android apps.

Links
Moderators
Bucky Roberts Administrator