I have a strange problem.
In the attached simple example I start a service which schedules itself every 5 minutes and just creates a log entry in a file on sdcard.
I use StartServiceAt("", DateTime.Now + 5*DateTime.TicksPerMinute, FALSE) to start the service again.
If I understand it correctly it should NOT start the service if the device is sleeping. But if I put my device into standby I still get a log entry every five minutes.
It may be that there is a problem on my device (LG P500 with CM7.1 (Android 2.3.5)) but the system battery status shows that the device is indeed sleeping but wakes up every five minutes.
Can someone please test the attached program if it's the same everywhere?
@Erel: How does the scheduling work internally?
In the attached simple example I start a service which schedules itself every 5 minutes and just creates a log entry in a file on sdcard.
I use StartServiceAt("", DateTime.Now + 5*DateTime.TicksPerMinute, FALSE) to start the service again.
If I understand it correctly it should NOT start the service if the device is sleeping. But if I put my device into standby I still get a log entry every five minutes.
It may be that there is a problem on my device (LG P500 with CM7.1 (Android 2.3.5)) but the system battery status shows that the device is indeed sleeping but wakes up every five minutes.
Can someone please test the attached program if it's the same everywhere?
@Erel: How does the scheduling work internally?