I’m developing an app with a service (inherited from Service). The service is started via the manifest:
<application ...>
...
<service android:enabled="true" android:name=".NotificationService" />
</application>
This used to work. Now, suddenly (with no apparent change in the code), it stopped working. When I debug my app, the service simply does not start.
- Yes, the service is in the same package as the main activity.
- Yes, the
servicetag is inside theapplicationtag. - Yes, I have uninstalled my app to ensure I have a clean environment.
- Yes, I have rebooted my device several times.
- No, a
Debug.waitForDebugger()in the service does not trigger.
I have cleaned the project. I have restarted Eclipse. Not sure what more I can try. Please help!
startServicewas never called. Hence, an error in my code. My question does however pinpoint a couple of gotchas that may prove useful 🙂