views:

82

answers:

3

Hi,

I wrote a little widget for Android devices.

The widget uses AlarmManager to set recurring updates. I'm using the RTC clock for the AlarmManager.

According to the documentation, if the device is sleeping, the RTC clock wont wake up the device and the next update will be when the device is woken.

I have a log file for the widget which shows when it was updated.

Even when I don't touch the device , I still see updates in the log file.

Why is that? shouldn't the device be sleeping and thus my widget shouldn't update?

I'm using System.currentTimeMillis() for the starting time so it should be correct for RTC clock.

Thanks.

A: 

I'm having the same problem. Any luck with this?

chief
A: 

I think the comment above was correct, something else was keeping the device awake.

Ran
A: 

I have the same problem. I keep getting alarms, while the screen is blank.

Peterdk