i'm not very sure whether this is what u r lookin for but u can make use of
 ActivityManager a = (ActivityManager)
getSystemService(Activity.ACTIVITY_SERVICE);
  List<RunningServiceInfo> servicesInfo= a.getRunningServices(15);
  for (RunningServiceInfo ele : servicesInfo) {
   if (ele.process.equals(YourProcess)) {
         if(ele.started)
           // service already started
   }
  }

On Fri, May 29, 2009 at 2:41 PM, Miguel Angel Tinte Garcia
<mati...@gsyc.es>wrote:

>
>
>
> Hi developers,
>
> I am trying to reuse a service which is already started. I mean, I
> launch my app and this instance of the service starts; then I click in
> the "go back" button, enter in the android menu and launch again the
> same app. I want the application to detect if it has been already
> launched for reusing that instance of the service.
>
> Thanks a lot
>
>
> --
> Miguel Ángel Tinte García
> Libre Software Engineering Lab (GSyC)  | Universidad Rey Juan Carlos
> mati...@gsyc.es
> http://libresoft.urjc.es/
>
>
> >
>


-- 
Regards,
Sujay
George Bernard 
Shaw<http://www.brainyquote.com/quotes/authors/g/george_bernard_shaw.html>
- "A government that robs Peter to pay Paul can always depend on the
support of Paul."

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

Reply via email to