In onCreate activity, we connect to a remote system and upload data. All this time we show the canceled ProgressDialog. Downloading is done using AsyncTask. In preExecute () we show the dialog, and in postExecute () we reject it.
The problem is that when you start the download and the ProgressDialog indicator, if the user clicks the Search button on the device, the ProgressDialog disappears. The background thread is still running.
What is the reason for this behavior? How can this be avoided?
Please, help.
thank.
Samuh source
share