I have an application which starts a service. The service has a timer and pops a notification every 30 seconds. I notice the following behavior:
I had the some problem.
You may use the WakeLock to do the work! Something like this:
PowerManager pm = (PowerManager)getApplicationContext().getSystemService(
getApplicationContext().POWER_SERVICE);
WakeLock wl = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG);
wl.acquire();
Then use this:
wl.release();
to release the wakelock.
Don't forger to add:
to the manifest!