hm...  this is pretty good --
http://stackoverflow.com/questions/600207/android-check-if-a-service-is-running

any objections?

On Sep 9, 4:08 pm, sdphil <[email protected]> wrote:
> when my activity gets started, i want to check for a service, if it
> exists, I want to show screen 2 and bind to the service, if the
> service is not running, I want to show screen 1 and start the service.
>
> i could not find an easy way to know whether the service is running or
> not...
>
> tia.
--~--~---------~--~----~------------~-------~--~----~
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