KFB
KFB

Reputation: 516

Alarms vs. TIME_TICK in Android

I'm not sure which is these is appropriate for my current application.

I need to switch wallpaper on a given, but user changeable, interval. I've been using a BroadcastReceiver to check every minute, but then I saw this question.

Is there any particular advantage to one method over another? Right now I've got to keep a service alive to receive the broadcast, but would using alarms obviate that?

Upvotes: 0

Views: 1234

Answers (1)

CommonsWare
CommonsWare

Reputation: 1007296

Yes, using AlarmManager would mean you would not need to keep a service in memory all of the time. This is A Very Good Thing. ;-)

Upvotes: 2

Related Questions