- Open the app in a connected device or emulator
- Press the home button to put the app in the background
- In the Logcat window in Android Studio, press the Terminate button on the left (might be hidden in a pop-out menu)
- Resume the app from the device's Overview menu
Various technical articles, IT-related tutorials, software information, and development journals
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:
Labels:
android
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment