O'Reilly logo
  • Rafael Vinicius Jose Brunello thinks this is interesting:

The life cycle is also used (though in a simpler way) as follows:

  • OnStart(): This method is called when the app starts
  • OnSleep(): This method is called when the app goes into the background or when the app terminates naturally (not a crash)
  • OnResume(): This method is called when the app comes back from the background