I use AsyncTask in combination with a ProgressDialog. See my code, I have a problem in onPostExecute. If the task is running for the first time it get a Null Poiter Exception fo
See https://stackoverflow.com/a/4538370/719212 And you should read about onPreExecute() in Android documentation.