Why when I call an AsyncTask from the activity onResume do I not get to see the progressdialog?
问题 When a user presses a tab in my application - I want a background task to get kicked off which shows a progress bar. I do this by launching a AsyncTask from the onResume() of my activity. The problem is that my progress dialog is not shown when doing this - the background task runs successfully and after the onPostExecute is run focus is returned to my activity and the application continues as normal. How can I launch a AsyncTask from the onResume = or when an activity is started with still