When restarted, doWork doesn't execute.
I'm using registerForBoot, but when android was restarted doWork doesn't execute. Look the logcat:
11-08 08:30:12.438: I/BackgroundService(1919): Timer task starting work 11-08 08:30:12.438: D/BackgroundService(1919): Is the service paused? 11-08 08:30:12.438: D/BackgroundService(1919): Service is not paused 11-08 08:30:12.438: I/BackgroundService(1919): Syncing result 11-08 08:30:12.438: I/BackgroundService(1919): Sending to all listeners 11-08 08:30:12.438: I/BackgroundService(1919): Timer task completing work
Thanks.
Looking at the above I believe it will have called the doWork() - "Service is not paused" is the line just before calling doWork().
Firstly, can you check your filters on logcat - make sure that you're not filtering out any doWork debug statements.
Next, what log statements do you have in your doWork()? Add more log statements to your doWork() to establish if it is making into the method.
You're right. Just added one more log into doWork() and I discover the problem. Thanks!