title: Async Task Progress Dialog doesn't go away
body: <p>Hello 
  I'm loading Tweets from a user account to show in a listview. Now I want to let the users know what's going on while they're waiting. I've implementend Async Task, but for some reason, onPostExcecute is never called. That's why the dialog is never removed.</p>
  
  <p>Can someone give me a hint.. What am I doing wrong?</p>
  
  <p>I can post my TweetAdapterClass if that's needed</p>
  
  <p>This is my AsyncClass</p>
  
  <pre><code>public class ProgressTask extends AsyncTask&lt;Void, Void, Void&gt; {
  
  
      @Override
      protected void onPreExecute() {
          dialog.setTitle("Even geduld...");
          dialog.setMessage("De tweets worden ingeladen...");
          dialog.show();
      }
  
      protected void onPostExecute() {
          try {
              if (dialog.isShowing()) {
                  adaptor = new TweetListAdaptor(MainActivity.this, R.layout.tweetitem, loadTweets());
                  setListAdapter(adaptor);
                  dialog.dismiss();
              }
          } catch (Exception e) {
          }
      }
  
      @Override
      protected Void doInBackground(Void... arg0) {
  
          return null;
  
      }
  }
  </code></pre>
  
  <p>LoadTweets looks like this:</p>
  
  <pre><code>private ArrayList&lt;Tweets&gt; loadTweets() {
      ArrayList&lt;Tweets&gt; tweets = new ArrayList&lt;Tweets&gt;();
      try {
          HttpClient hc = new DefaultHttpClient();
          HttpGet get = new HttpGet(
                  "http://search.twitter.com/search.json?q=JobXXL_be&amp;rpp=10");
          // HttpGet get = new
          // HttpGet("http://search.twitter.com/search.json?q=Stijn_messiaen&amp;rp=10");
  
          HttpResponse rp = hc.execute(get);
          if (rp.getStatusLine().getStatusCode() == HttpStatus.SC_OK) {
              String result = EntityUtils.toString(rp.getEntity());
              JSONObject root = new JSONObject(result);
              JSONArray sessions = root.getJSONArray("results");
              for (int i = 0; i &lt; sessions.length(); i++) {
                  JSONObject session = sessions.getJSONObject(i);
                  Tweets tweet = new Tweets();
                  tweet.setTweet(session.getString("text"));
                  tweet.setUser(session.getString("from_user"));
                  // datum vertalen
                  String date = session.getString("created_at").substring(5,
                          16);
                  String[] arrDate = date.split(" ");
                  int id = this.getResources().getIdentifier(
                          arrDate[1].toString(), "string",
                          this.getPackageName());
                  String maand = getResources().getString(id);
                  date = arrDate[0].toString() + " " + maand + " "
                          + arrDate[2].toString();
  
                  tweet.setDate(date);
                  tweets.add(tweet);
              }
          }
      } catch (Exception e) {
          Log.e("TwitterFeedActivity", "Error loading JSON", e);
      }
      return tweets;
  }
  </code></pre>
  
  <p>EDIT: I added my LoadTweets() in my <code>doInBackgroundMethod</code> and that solved my problems!</p>