문제

I have an app with a service in background. The service runs since the boot, but when the app is started, and closed, the service keeps all the memory that the app uses.

How can I clean all that memory for the service to run light like in the boot ?

도움이 되었습니까?

해결책

Stop the service, if you are not doing so already (via stopService() or stopSelf()).

After that, your process will eventually be terminated by the OS, when it needs the RAM for other processes.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top