title: Cannot make a static reference to the non-static method progressbar error
body: <p>I am new to Android , I am trying to add a progreessbar. Below is the code </p>
  
  <pre><code> progressbar("test");
  
  public void  progressbar(String test) throws IllegalArgumentException, SecurityException, IllegalStateException, IOException{
          ProgressDialog progress = new ProgressDialog(this);
          progress.setMessage("Downloading Music :) ");
          progress.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
          progress.setIndeterminate(true);
      }   
  </code></pre>
  
  <p>If I run this I get following error
  "Description    Resource    Path    Location    Type
  Cannot make a static reference to the non-static method progressbar(String) from the type MainActivity  MainActivity.java   /ProgressBar2/src/com/example/progressbar2  line 64 Java Problem"</p>
  
  <p>Anyone knows about this?</p>