Android Question Activity lifecycle testing


Well-Known Member
Licensed User
Longtime User

I want to test my activity lifecycles. Android closes activities after a while and that is great to test how your app. restores after Android has killed/stopped it.

But, it is not always easy to test. You need to open other apps. and wait till Android kills your acitivity.

Is there a faster way to test this precise behavior?


Licensed User
Longtime User
Settings > Developer options > Dont keep activities
If 'Don't keep Activity' check box is checked, does that mean that it is safe to use ExitApplication and not risk OS to restart you app inadvertently. I see on the forum too much need for an application to completely stop when exited.
Upvote 0