title: ProgressDialog in AsyncTask
body: <p>I'm trying to display a custom progressdialog while loading RSS feed from an HTTP server, I made a hard search, but nothing helped me to do this, the only thing I know is that the solution should use <code>AsyncTask</code>, but I'm confusing about the params to pass to this <code>AsyncTask</code>.
  Here's my activity :</p>
  
  <pre><code>public class Soirees extends ListActivity {
  
      private List&lt;Message&gt; messages;
      private TextView tvSorties;
      private MyProgressDialog dialog;
  
      @Override
      public void onCreate(Bundle icicle) {
  
          super.onCreate(icicle);
          setContentView(R.layout.sorties);
  
          tvSorties=(TextView)findViewById(R.id.TVTitle);
          tvSorties.setText("Programme des soirées");
  
          loadFeed();
  
      }
  
      private void loadFeed(){
  
          try{
              BaseFeedParser parser = new BaseFeedParser();
              messages = parser.parse();
              List&lt;Message&gt; titles = new ArrayList&lt;Message&gt;(messages.size());
              for (Message msg : messages){
                  titles.add(msg);
              }
              MessageListAdapter adapter = new MessageListAdapter(this,titles);
              this.setListAdapter(adapter);
              adapter.notifyDataSetChanged();
  
          } catch (Throwable t){
              Log.e("ImageLoader",t.getMessage(),t);
          }
      }
  
  }
  </code></pre>
  
  <p>Can you please help me add <code>AsyncTask</code> to this?</p>