calendar - Android How to create a recurring task that will happen every friday? -
my problem want application download information database every week. new promotion every week , updated on database every friday.
i know how check day of week using calendar.
but don't know how find out when next occurring friday be.
is possible or should make weekly check starting day application installed?
store timestamp of last update in sharedpreferences. use alarmmanager
interval_day
. when wakes app, check if it's friday, or has been more 156 hours since last update. if is, run updates.
alternatively, check last update time when launching, , if it's been more x days since last update, update then.
Comments
Post a Comment