Answer the question
In order to leave comments, you need to log in
How to speed up the unloading of an application from RAM?
When the application is minimized and you start using other programs, then after some time the minimized application is unloaded from memory, but, as it were, there remains a state for restoring the application.
On my devices, this time is about half an hour, so debugging the application is not possible. How can this time be reduced? Maybe pick something in build.prop?
In developer mode, "Do not save activities" and "Background process limit" is not suitable.
Answer the question
In order to leave comments, you need to log in
Everything turned out to be very simple, the solution to the problem was constantly under my nose. If you go to "Settings> Applications> In the cache> * application *> Stop", then it just works as I need.
You can hurry up with this command
android.os.Process.killProcess(android.os.Process.myPid());
You can kill the process (all activities, services, threads) through adb:adb shell am force-stop ru.your.app.package
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question