In my application I used an alert dialog box to show 'connection error' message if API call fails. API calls are written with in an AsyncTask. While API is called 'loading' dialog is shown, onPostExecute I will dismiss this 'loading' dilaogue , after that if the API call fails I will show the 'connection error' message.
My problem is while the 'loading' dialog is shown if I press the home button and when I come back to the app, app is in freezed state.
I think the problem is with the 'Connection Error' AlertDailog box,if I remove alertDailog.show,we will not get this issue.
How to solve this?