On Tue, Jun 14, 2011 at 3:34 PM, Simon Platten <simonaplat...@googlemail.com> wrote: > The application schedules wall-paper changes, originally I was using Timers, > but this meant the application had to be resident all the time, now I'm > using the AlarmManager to schedule rotations, I've limited the maximum > rotation to 1 second, although in reality I wouldn't expect anyone to set it > that low.
Personally, I'd set the floor at a minute, but that's just me. FWIW, here's an example of a class that cancels and schedules alarms. It is using one-shot alarms with set() rather than setRepeating(), but the concept should still hold. https://github.com/commonsguy/cw-lunchlist/blob/master/19-Alarm/LunchList/src/apt/tutorial/OnBootReceiver.java -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- 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