Android - Screen Rotation

Card Puncher Data Processing


When the screen orientation changes, the system destroys and recreates the activity in order to apply alternative resources that might be available for the new screen configuration.

The following lifecycle callback function sequence is then called

  1. onPause
  2. onStop
  3. onCreate
  4. onResume
  5. onStart
  6. onDestroy


To rotate an emulator, use:

  • Linux: CTRL + F12
  • Mac: Fn + Left CTRL + F12
  • Windows: Left CTRL + F11 or Left CTRL + F12

Discover More
Android Activity Lifecyle
Android - (Activity|Fragment) Lifecycle

The Activity lifecycle is implemented by callback methods. A good way to test the lifecycle implementation (ie the application's ability to restore its state) is to simply rotate the device so that the...
Card Puncher Data Processing
Android - AsyncTask

The class android/os/AsyncTaskAsyncTask simplify background thread creation. The AsyncTask is not tied to the activity lifecycle. The virtual machine will hold the AsyncTask alive as long as the AsyncTask...

Share this page:
Follow us:
Task Runner