Process.killProcess(pid); is killing the whole process

stopSelf() and stopService() stops the service but the process which
is still in the background and Android will kill it when needed.

You don't need to kill your process to stop a service, if you read
through the docs or this forum you will find more details.

Hope it helps!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to