avoid splash screen if a service is running...

by sdphil » Thu, 10 Sep 2009 07:09:23 GMT


Sponsored Links
 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.
--~--~---------~--~----~------------~-------~--~----~



avoid splash screen if a service is running...

by sdphil » Thu, 10 Sep 2009 07:11:30 GMT


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

any objections?



--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. ServiceTestCase and Contexts

Hey Everyone,
   I don't know if I am doing something wrong here, but when I am
trying to use the ServiceTestCase class to test my Service, I cannot
get a context which points to the test project.  getContext() and
getSystemContext() both seem to point to the target project's
context.  The reason I need the context of my test app is that i have
some assets which i need to be able to use in order to test the
service in question.  Does anyone know of a workaround or could point
me at a way of resolving this?  (i looked through the source of
ServiceTestCase and didn't see another way)

Something similar to instrumentationtestcase's
getInstrumentation.getContext() is what I am looking for.

Thanks.

-- 

2. KGDB on Nexus One

I'm trying to do kernel debugging on my Nexus One, and I have been
following instructions from this website, 
http://bootloader.wikidot.com/android:kgdb;
but when I add the changes I run into errors, and I have been trying
to resolve them. I was wondering if someone got this to work or has
there been recent changes to the kernel to allow for kgdb? The branch
of the kernel that I have been modifying and using is: android-
msm-2.6.29-nexusone.

-- 

3. Custom Contact Sync Adapter - Icons and Titles

4. Best practices for automatic retrying of AsyncTask

5. Eclipse shows error, but no error found

6. Predefined styles

7. (WTA) MyTouch Music