title: Use progressBar instead of ProgressDialog
body: <p>I want to use progress bar while downloading from server,Actually i was using progressDialog but it will be good look if i use progressBar instead of progressDialog.I have following code for Progress dialog .</p>
  
  <pre><code> public class FeaturedData extends AsyncTask&lt;Void, Void, Void&gt; {
  
  
      Home home;
      ProgressDialog dialog = null;
  
      public FeaturedData(Home home) {
          // TODO Auto-generated constructor stub
          this.home = home;
      }
  
      @Override
      protected Void doInBackground(Void... params) {
          // TODO Auto-generated method stub
          //calling here method
          return null;
      }
  
      @Override
      protected void onPostExecute(Void result) {
          // TODO Auto-generated method stub
          super.onPostExecute(result);
          dialog.dismiss();
  
      }
  
      @Override
      protected void onPreExecute() {
          // TODO Auto-generated method stub
          super.onPreExecute();
          dialog = ProgressDialog.show(home, "", "", true);
      }
  </code></pre>