Different States of an Android Activity

+155 Bucky Roberts · December 19, 2014

   protected void onStart() {
       Log.i(TAG, "onStart");

   protected void onResume() {
       Log.i(TAG, "onResume");

   protected void onPause() {
       Log.i(TAG, "onPause");

   protected void onStop() {
       Log.i(TAG, "onStop");

   protected void onRestart() {
       Log.i(TAG, "onRestart");

   protected void onDestroy() {
       Log.i(TAG, "onDestroy");

   protected void onSaveInstanceState(Bundle outState) {
       Log.i(TAG, "onSaveInstanceState");

   protected void onRestoreInstanceState(Bundle savedInstanceState) {
       Log.i(TAG, "onRestoreInstanceState");

Post a Reply


- 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
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


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

Bucky Roberts Administrator