title: How to change the return type of AsynTask?
body: <p>I'm very new to programming and I have extended the <code>AsynTask</code> class like this:</p>
  
  <pre><code>private class HttpCalls extends AsyncTask&lt;Void,Void,JSONObject&gt;
  </code></pre>
  
  <p>and I have overrided the method like this:</p>
  
  <pre><code>protected JSONObject doInBackground(Void... voids) {
       . . .
       return jsonObject;
  }
  </code></pre>
  
  <p>but when I call <code>new HttpCalls().execute()</code> I want the return type to be of <code>JSONObject</code> but what I get is :</p>
  
  <pre><code>AsyncTask&lt;Void,Void,JSONObject&gt;
  </code></pre>
  
  <p>how do I change this to <code>JSONObject</code>. Thanks in advance.</p>