I have a service which runs in the background when the user starts
using my app. I am using it to do some posts to our server.
I always close my service by calling stopSelf as soon as the posts
have been made or failed.

But I recently observed two times that my service did not stop. I saw
that in the running services in settings on my device that it has been
sitting there for over a few hours.

So I was trying to see if I can alternatively set a timer using which
I can force the service to stop after a few minutes no matter what.

Does any one have any thoughts on how to do this?

Thank you

-- 
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