I have several services in my application. The application runs in the process of "android.uid.system". When I click force close, then the logs say:
Forced Stop Package com.sec.ims.android uid = 1000 Forced Stop Service ServiceRecord {42b9a948 ... .....
I see that for each service running under my application. There is no call to onDestroy () at all. I am wondering what exactly does android do after "closing the power"? Stopping the whole process or just stopping all services, actions running under the application?
Do you know what happens to objects, static variables and threads that were created by these services? Does android delete all the heap of memory for this application?
source share