title: Can't Override onPostExecute() method in AsyncTask Class
body: <p>I know there are several question which are quite similar to this one, but they didn't helped me so far. I'm still not able to override this AsyncTasks.
  Can you hel me? </p>
  
  <p>I already made sure that doInBackground() devlivers some type that onPostExecute() requires (Boolean in the first and JSON in the second example). </p>
  
  <p>Do you see anything except that i extend AsyncTask as raw type (was not sure about what to enter here)</p>
  
  <p>This is the error eclipse tells me for each method:</p>
  
  <blockquote>
    <p>The method onPostExecute(Boolean) of type Register.NetCheck must override or implement a supertype method</p>
  </blockquote>
  
  <p>and for the classes eclipse tells me:</p>
  
  <blockquote>
    <ul>
    <li><p>The type Register.NetCheck must implement the inherited abstract  method AsyncTask.doInBackground(Object...)</p></li>
    <li><p>AsyncTask is a raw type. References to generic type AsyncTask should be 
     parameterized</p></li>
    </ul>
  </blockquote>
  
  <p>EXAMPLE 1:</p>
  
  <pre><code>private class NetCheck extends AsyncTask {
  
          @Override
          protected void onPreExecute(){
              super.onPreExecute();
              do.something();
          }
  
          @Override
          protected Boolean doInBackground (String... args){
                 if (do.something.worked){
                     return true; }
                 else { return false}
          }
  
          @Override
          protected void onPostExecute(Boolean th){
              evalute.input.boolValue();
          }
      }
  </code></pre>
  
  <p>EXAMPLE 2:</p>
  
  <pre><code>private class ProcessRegister extends AsyncTask {
  
          @Override
          protected void onPreExecute() {
              super.onPreExecute();
              show.some.dialog();
          }
          @Override
          protected JSONObject doInBackground(String... args) {
          JSONObject json = generate.some.json();
              return json;
          }
          @Override
          protected void onPostExecute(JSONObject json) {
             evaluate.something();
          }
  
  }
  </code></pre>