Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 9th, 2012  |  syntax: None  |  size: 0.83 KB  |  hits: 21  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Android Activity Life Cycle in Jelly Bean
  2. @Override
  3. protected void onPause() {
  4.     Log.i("TEST", "onPause()");
  5.     super.onPause();
  6. }
  7.        
  8. ---------- Program Launch -------------
  9. onCreate(null)
  10. onStart()
  11. onResume()
  12. ---------- Turn Off Screen ------------
  13. onPause()
  14. onSaveInstanceState(not null)
  15. onStop()
  16. ---------- Turn Screen On -------------
  17. onReStart()
  18. onRestoreInstanceState(not null)
  19. onResume()
  20.        
  21. ---------- Program Launch -------------
  22. onCreate(null)
  23. onStart()
  24. onResume()
  25. ---------- Turn Off Screen ------------
  26. onPause()
  27. onSaveInstanceState(not null)
  28. onStop()
  29. onDestroy()
  30. onCreate(not null)
  31. onStart()
  32. onRestoreInstanceState(not null)
  33. onResume()
  34. onPause()
  35. ---------- Turn Screen On -------------
  36. OnResume()
  37. onPause()
  38. onSaveInstanceState(not null)
  39. onStop()
  40. onDestroy()
  41. onCreate(not null)
  42. onStart()
  43. onRestoreInstanceState(not null)
  44. onResume()