How to update ui from asynctask
You have three protected methods in an AsyncTask that can interact with the UI. onPreExecute() runs before doInBackground() onPostExecute() runs after doInBackground() completes onProgressUpdate() this only runs when doInBackground() calls it with publishProgress() If in your case the Task runs for a lot longer than the 30 seconds you want to refresh you would want … Read more