title: Android AsyncTask's onProgressUpdate not working
body: <p>I have an <code>AsyncTask</code> in a class. I want it to display the progress while it is getting executed. But it is not printing the Logs.</p>
  
  <pre><code>private void registerBackground() {
      new AsyncTask&lt;Void, Integer, String&gt;() {
  
          @Override
          protected String doInBackground(Void... params) {
              Log.v("TAGGG", "IN doInBackground");
              msg = "Error: ";
  
              return msg;
          }
  
          @Override
          protected void onProgressUpdate(Integer... progress) {
              super.onProgressUpdate(progress);
              Log.v("TAGGG", "Progress: " + progress[0] + "%");
          }
  
          @Override
          protected void onPostExecute(String msg)
          {
              Log.v("TAGGG", msg);
          }
      }.execute();
  }
  </code></pre>