My app needs to periodically fetch data from the web and update itself every 5 minutes. For the same, I was using Asynctask to fetch the content and process it in the background thread before sending it to the UI thread. Recently, I came to know about Asynctask Loaders and its benefits. However, I am not able to figure out how to periodically call the loader every 5 minutes to update the content.
(Please note earlier I was using Timer to call task.execute(). I need to finally update my listview if there is any new content.)