I used AsyncTask
to request for a large chunk of data. When received, the data is processed inside the onPostExecute
method. It may take a while to process the data.
Based from my understanding, AsyncTask
is asynchronous and is independent from the UI.
onPostExecute
?Activity
to freeze if processing inside the onPostExecute
method is too long?Activity
won't freeze onPostExecute
?doInBackground
method.onProgressUpdate
onPostExecute
. try getting filtered or parsed data (lighter data) in onPostExecute
.