Saturday, 15 June 2013

kill - Execute method when Android app process is finished -


I am working on an Android app and I have to know how the OS kills the process, Make a request to my server I have tried to start a service and put the request in the DIRESTO () method, but the service stops only when I kill it with the manual (with START_STICKY), I am START_NOT_STICKY I use the service ends with the app, I But it does not execute the onDestroy () method.

My manifest looks like this:

  & lt; Service android: name = "test session and service" Android: enabled = "true" Android: export = "wrong" & gt; & Lt; / Services & gt;  

When the process is killed it has actually gone. You can not execute anything else. Onstoroy () is said after your service is stopped, either by stop service () or stop (self-service) (and the service is not binding), but this does not mean that the process is killed has gone. If you are worried about the user, you can try swiping your app from recent days

or


No comments:

Post a Comment