title: How to pass data from an asynchronous task to an activity that called it?
body: <p>I am new to Android. I am using Sockets in an asynchronous task and I wish to pass data back to the activity that called it. But I do not want the asynchronous task to handle the UI. I just wish to pass data.
  The class that e![enter image description here][1]xtends async task is not a part of the class that extends activity</p>
  
  <p>My activity has 2 buttons. When the button is clicked, async task is called and corresponding changes should be made to rest of the activity. </p>