title: How does AsyncTask<String, Void, Void> work?
body: <p>Could anyone tell me what is going wrong here?</p>
  
  <pre><code>public class BackgroungTask extends AsyncTask&lt;String, Void, Void&gt; {
  
      public Void doInBackground(String... params) {
         //tasks
         return;  //error occurs here!
      }
  
      public void onPostExecute(Void result) {
          //codes
      }
  }
  </code></pre>
  
  <p>The above class does not depend on return values. So onPostExceute() simply execute codes written in there.</p>
  
  <p>Thanks in advance!</p>