How st progress bar for loading data on button click
<p>How to call asynktask in android for loading data on button click</p>

<pre><code> Button b4=(Button)  findViewById(R.id.button4); 
 b4.setOnClickListener(new OnClickListener(){
     @Override
     public void onClick(View v) {
        new performBackgroundTask().execute();
        loadFeed(news);     
     }
 });  
 private class performBackgroundTask extends AsyncTask &lt; Void, Void, Void &gt;  {
    private ProgressDialog Dialog = new ProgressDialog( AndroidRssReader.this);
    protected void onPreExecute() {
        Dialog.setMessage(" please wait while loading............");
        Dialog.show();
    }
    protected Void doInBackground(Void... params) {
        loadFeed(news);
        return null;    
    }  
    protected void onPostExecute(Void unused) {   
        Dialog.dismiss();    
    }

 }
</code></pre>

<p>I'm not able to call the loading function with asynk task. What am I doing wrong?</p>
