Sunday, August 30, 2015

Andoid service not running - Java

If you have created a class extending IntentService, and your service is not getting called, here is the possible cause.

If your Java onHandleIntent function is never called, then you might forgot to add your service to AndroidManifest.xml file.

You will receive no error if the declaration is missing in AndroidManifest.xml, because IntentService is a class just as any other in code.

So, make sure you put declaration of your service in your Android manifest file!

No comments:

Post a Comment

Ubuntu 12.04, 14.04, 16.04 - auto start an app or script before login

To run a command or application at startup, even before the user has logged in, you can use this file: /etc/rc.local The commands entered...