Different States of an Android Activity

+122 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 1
Oldest  Newest  Rating
+5 Carl Barlow · March 1, 2015
onDasher(), onDancer(), ...
Took me a while to find this post with the source code, but otherwise I'm loving this video series!
+2 jan burg · December 19, 2014
Thanks man, this is pretty useful. Is this some foreshadowing of some new android/java development tutorials to look forward to? :)
+2 Shreyans Mulkutkar · March 18, 2015
I added Log messages to my source code, but don't know why its not throwing onCreate, onStart, etc. messages when my App comes up on my emulater. Even added the log message filter. Still not seeing it. 
Can someone point out what is that thing I'm doing wrong?
Thanks in advance.
+1 Kenny Dexter · March 17, 2015
WOw......and What a Wow


your tutorials are dope , i'm just speechless!:sick:
0 rami Issa · July 24, 2015
Hi Bucky!

In the first video you talk about " the life of an app" and you explaine and show how to create logs for what is happening and then you show how to create a filter. 

When i try to run the app i get this error message and have no idea of what to do, thankful for all help that i can get

Best regards

0 Samiul Masuk · February 10, 2015
0 shabreesh menon · August 25, 2015
Hello Guys Check out First APP I have created using GridLayout. The App is called Calculator. Check it out guys and let me know if there is any improvmements to be made :) :)

0 Asher Can · July 25, 2015
Thank you for sharing all you videos!
0 Colder Coder · July 5, 2015
Hi, thanks for this. I find this thread through the android tutorial, which helps a lot.
0 Colder Coder · July 5, 2015
one question, why cannot I see the onDestroy log when the app is removed through the "square" button.

Java / Android Development


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

Bucky Roberts Administrator