Store the timestamp of your last update in SharedPreferences. Use AlarmManager
with INTERVAL_DAY
. When it wakes up your app, check if it's Friday, or has been more than 156 hours since the last update. If it is, run your updates.
Alternatively, check the last update time when launching, and if it's been more than a x days since the last update, update then.