Reputation: 5
in my app I have Getting Data from Url Using AsyncTask, these Url Everyday update some new data, then how is possible to download these data Once in day.
Upvotes: 0
Views: 48
Reputation: 3041
You may use the AlarmManager
The Alarm Manager is intended for cases where you want to have your application code run at a specific time, even if your application is not currently running.
So you can specify a fixed time of the day when you want your data to be updated.
Alternatively, you may use the TimerTask or Handler
Upvotes: 1