Different States of an Android Activity

+138 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 Lester Rodriguez · August 29, 2015
You're awesome!
Pretty sweet.
Just having fun with your tutorials
and learning as well.
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 taha almasri · August 25, 2015
can u help me please :(
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 Ashraf Qandeel · August 16, 2015
Thanks alot....
0 nishanth somashekar · July 30, 2015
thanks bucky
0 Asher Can · July 25, 2015
Thank you for sharing all you videos!
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 sandip ghoshal · July 24, 2015
i am having problem with android avd manager i can not open emulator the android virtual device i am new in this this following error i am getting

D:\Users\sandip\AppData\Local\Android\sdk\tools\emulator.exe -netdelay none -netspeed full -avd Nexus_5_API_22
Creating filesystem with parameters:
WARNING: userdata image already in use, changes will not persist!
Size: 69206016
WARNING: cache image already in use, changes will not persist!
Block size: 4096
Blocks per group: 32768
Inodes per group: 4224
Inode size: 256
Journal blocks: 1024
Blocks: 16896
WARNING: SD Card image already in use: D:\Users\sandip\.android\avd\Nexus_5_API_22.avd/sdcard.img
Block groups: 1
Reserved block group size: 7
Created filesystem with 11/4224 inodes and 1302/16896 blocks
emulator: WARNING: Requested RAM size of 512MB is too large for your environment, and is reduced to 384MB.
emulator: device fd:600
HAX is not working and emulator runs in emulation mode
emulator: The memory needed by this AVD exceeds the max specified in your HAXM configuration.
emulator: AVD RAM size = 384 MB
emulator: HAXM max RAM size = 0 MB
emulator: You might want to adjust your AVD RAM size and/or HAXM configuration to run in fast virt mode.
creating window 43 59 329 583
emulator: emulator window was out of view and was recentered

Java / Android Development


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

Bucky Roberts Administrator