Ty Mark, I'll try it!
On 14/06/2011 8:37 PM, Mark Murphy wrote:
On Tue, Jun 14, 2011 at 3:34 PM, Simon Platten
<[email protected]> 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
--
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