How to make the application be destroyed in the background for testing

I have a problem in the application that occurs after the application has been destroyed in the background. Although I have some fixes, I want to be able to test them immediately.

If I describe my application and make a "forced stop" from the system settings of the application, this does not seem to recreate the problem when the application resumes.

Right now, I have to run the background application and wait almost 12 hours before trying again.

How can I tell Android to destroy the application so that I can check my fixes without waiting.

+6
source share
1 answer

In newer versions of Android, there is an option called Settings> Developer Options, called Do not Keep, which will destroy every action as soon as the user leaves it. Not sure if this makes power or not, but worth a look.

+7
source

Source: https://habr.com/ru/post/921326/


All Articles