Neil,
Take a look at AlarmManager.
http://developer.android.com/reference/android/app/AlarmManager.html
For update checks, you might want to use a non-wakeup type of alarm
(AlarmManager.RTC), so it's delayed until the user starts using the
phone in the morning and wakes it up (such as an alarm clock going off),
but a wakeup-type alarm would work too.
-- Kostya
01.02.2011 19:09, Neilz пишет:
Hi all. I want to build certain functionality into my app, but I'm not
sure if it's possible. The main parts of the app (and server calls)
are built, it's just the scheduling I'm considering.
1) I want the app to check against a server at a set time each
morning. If there are updates available (in this case it's just some
data from a database) I want to either create a notification, or
resume the app, loading up the new data.
2) I suppose if the device isn't turned on at the specified time, then
it should check the next time it starts up to see if an update check
is due.
3) I want this to be done in a way where the app isn't running, i.e.
no drain on resources.
So, can this be done, and what should I be looking at?
Thanks.
--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com
--
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