How do I create a superclass that extends AsyncTask?
<p>I have to extend the android class android.os.AsyncTask (Params, Progress, Result). I have to add new methods and class variables without setting (Params, Progress, Result) in the superclass, as types will be defined by its children.</p>

<pre><code>                 AsyncTask &lt;Params, Progress, Result&gt;
                               |
               My superclass &lt;Params, Progress, Result&gt;
                               |
                           ┌───┴───────────────┬───────────────────┐
                           |                   |                   |
         Child1 &lt;Integer, Void, Integer&gt;       |                   |
                                               |                   |
                            Child2 &lt;JSONObject, Void, Integer&gt;     |
                                                                   |
                                               Child3 &lt;String, Void, Integer&gt;
</code></pre>

<p>How do I implement this?</p>
