Because our app users report some crashes due to restored activities, I would like to test this.
Is there any possibility to manually cause Android to destroy the running (background) activity to save space?
Because our app users report some crashes due to restored activities, I would like to test this.
Is there any possibility to manually cause Android to destroy the running (background) activity to save space?
See the official Dev Tools app in the emulator, and if you get hold of a device running system level 4+, there's a system setting area labeled 'development' under which there's a checkbox for destroying activities as soon as they are paused.
Did you try clear the android stack of activities with FLAG_ACTIVITY_CLEAR_TOP?
Check this link