title: messed up with publishProgress method while using it in AsyncTask
body: <p>I am trying to implement simple internal data storage code.In it I want to show <code>ProgressDialog</code> for some background process which will increment by 5 while calling <code>publishProgress()</code>. But it gives me error like the following,</p>
  
  <pre><code>The method publishProgress(R.integer...) in the type AsyncTask&lt;String,R.integer,String&gt; is not applicable for the arguments (int)
  </code></pre>
  
  <p>following is the code.</p>
  
  <pre><code>public class loadSomeStuff extends AsyncTask&lt;String, integer, String&gt;
  {
      ProgressDialog dailog;              
      protected void onPreExecute()
      {
          //example of setting up something
          dailog=new ProgressDialog(MainActivity.this);
          dailog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
          dailog.setMax(100);
          dailog.show();
      }
  
      @Override
      protected String doInBackground(String... params) {
          // TODO Auto-generated method stub          
          String collected=null;
          FileInputStream fis=null;
  
          for(int i=1; i&lt;=20; i++)
          {
              publishProgress(5);
              try {
                  Thread.sleep(100);
              } catch (InterruptedException e) {
                  // TODO Auto-generated catch block
                  e.printStackTrace();
              }
          }
          dailog.dismiss();
          try {
              fis=openFileInput(FileName);
              byte[] dataArray = new byte[fis.available()];
              while(fis.read(dataArray)!= -1)
              {
                  collected=new String(dataArray);
              }
          } catch (FileNotFoundException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
          } catch (IOException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
          }finally{
              try {
                  fis.close();
                  return collected;
              } catch (IOException e) {
                  // TODO Auto-generated catch block
                  e.printStackTrace();
              }
          }
  
          return null;
      }
  
      protected void onProgressUpdate(Integer...progress)
      {
          dailog.incrementProgressBy(5);
  
      }
      protected void onPostExecute(String result)
      {
          DataResults.setText(result);
      }
  
  }
  </code></pre>