Saturday, August 25, 2018

Simulating Android background process termination

To free up memory, Android sometimes terminates the processes of apps that are in the background. Therefore, apps need to be able to restore from saved state. To test this from Android Studio:

  1. Open the app in a connected device or emulator
  2. Press the home button to put the app in the background
  3. In the Logcat window in Android Studio, press the Terminate button on the left (might be hidden in a pop-out menu)
  4. Resume the app from the device's Overview menu

No comments:

Post a Comment