Alexey Volovoy wrote:
> Well.. i've tried to use alarm manager like:
> AlarmManager alarmManager = (AlarmManager)getSystemService
> (Context.ALARM_SERVICE);
> alarmManager.set(AlarmManager.RTC, nextUpdate, pendingIntent);
> thinking behind it was - if devices is not a sleep, i'll loop through
> my headlines in 30 sec interval. If it goes a sleep i don't need to do
> anything.
> Well after putting devices to sleep i still see updates. It's
> obviously i'm doing something wrong but have no idea what exactly..

If the device is asleep, how do you "see" updates?

Bear in mind:

"This alarm does not wake the device up; if it goes off while the device
is asleep, it will not be delivered until the next time the device wakes
up. "

Hence, it may be you are getting the alarm as you are coming out of sleep.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Looking for Android opportunities? http://wiki.andmob.org/hado

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to