title: Android: pass function reference to AsyncTask
body: <p>I'm new to android and very used to web developing. in javascript when you want to perform an asynchronous task you pass a function as an argument (a callback):</p>
  
  <pre><code>http.get('www.example.com' , function(response){
     //some code to handle response
  });
  </code></pre>
  
  <p>I was wondering if we can do the same with android's <code>AsyncTask</code> , pass a function reference to the <code>onPostExecute()</code> method , and it will run it.</p>
  
  <p>any suggestions ?</p>