Re: [android-developers] Re: Alarm in sleep mode
On Tue, Dec 28, 2010 at 11:56 PM, b_t bartata...@gmail.com wrote: Hmm, so there is no possibility to display real-time information in a widget? For example a compass widget? Correct, app widgets are not intended to be continually refreshing. What is an acceptable refresh rate? Less is better. For polling, I'd suggest 15 minutes. Many times you would be better off doing something push-based, however, such as how gmail gets pushes when there is new mail, causing it to sync, and update any widget as part of that process. And the main question, why does the alarmmanager send alarms in sleep mode when I use RTC instead of RTC_WAKEUP? Because something is still keeping the CPU running. Note the use of the word asleep in the documentation here is somewhat misleading -- it is not talking about the screen being off, but the actual CPU being asleep. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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
[android-developers] Re: Alarm in sleep mode
Thank you, you answered all of my questions On Dec 29, 10:52 am, Dianne Hackborn hack...@android.com wrote: On Tue, Dec 28, 2010 at 11:56 PM, b_t bartata...@gmail.com wrote: Hmm, so there is no possibility to display real-time information in a widget? For example a compass widget? Correct, app widgets are not intended to be continually refreshing. What is an acceptable refresh rate? Less is better. For polling, I'd suggest 15 minutes. Many times you would be better off doing something push-based, however, such as how gmail gets pushes when there is new mail, causing it to sync, and update any widget as part of that process. And the main question, why does the alarmmanager send alarms in sleep mode when I use RTC instead of RTC_WAKEUP? Because something is still keeping the CPU running. Note the use of the word asleep in the documentation here is somewhat misleading -- it is not talking about the screen being off, but the actual CPU being asleep. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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
[android-developers] Re: Alarm in sleep mode
On Dec 28, 8:00 pm, Mark Murphy mmur...@commonsware.com wrote: On Sat, Dec 25, 2010 at 3:54 PM, b_t bartata...@gmail.com wrote: In an appwidget I declare a repeating alarm to refresh a widget in every 10 seconds: Please don't. yeah really - not on my phone you won't -- 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
[android-developers] Re: Alarm in sleep mode
Hmm, so there is no possibility to display real-time information in a widget? For example a compass widget? What is an acceptable refresh rate? And the main question, why does the alarmmanager send alarms in sleep mode when I use RTC instead of RTC_WAKEUP? Thanks On Dec 29, 5:25 am, kernelpanic j.m.roya...@gmail.com wrote: On D?ec 28, 8:00 pm, Mark Murphy mmur...@commonsware.com wrote: On Sat, Dec 25, 2010 at 3:54 PM, b_t bartata...@gmail.com wrote: In an appwidget I declare a repeating alarm to refresh a widget in every 10 seconds: Please don't. yeah really - not on my phone you won't -- 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