Reschedule the alarm each time it goes off to go off at the next time you want it.
On Thu, May 3, 2012 at 2:11 PM, BearTi <[email protected]> wrote: > Hi, > > I´ve implement an AlarmManager to update a widget every (for example) 2 > hours. > Now I want to develope a night modus so that for example the Alarm/Update > is not fired beetween 0:00 to 8:00am. > > How can I do this? > The update frequency and the "night off modus" should be set dynamically. > > Thanks! > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer [email protected] 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

