In my application, I used the alert dialog to show a connection error message if the API call failed. API calls are recorded in AsyncTask. While the API is called a “downloadable” dialog, onPostExecute I reject this “loading” dilaogue, after which, if the API call failed, I will display a “communication error” message.
My problem is that while the download dialog is displayed, if I click the home button, and when I return to the application, the application is in a frozen state.
I think the problem is with the AlertDailog "Connection Error" checkbox, if I remove alertDailog.show, we will not get this problem.
How to solve this?
source
share