I am doing data fetch from net in an external task.
Now this fetch happens in two steps. So I want to display some message after the first step.
This will happen in the async task not on the UI task.
On the main UI task I already have a progress bar in the preexecute method.
I would like to know if there is a way to display something from the background async task.
I saw handle to be used for threads. Do we have something similar for async task?
You have to Override the
onProgressUpateMethod of your AsyncTask. There you can do the stuff to Display the Text.To trigger onProgressUpdate you have to call
publishProgress()in yourdoInBackground-Method.