title: How to stop asynctask in android when back button is pressed
body: <p>I have an activity (say Avtivity A) which runs an asyncatsk and display some results which gets displayed in another activity (Activity B). All is working fine. When the user clicks on a button, the task is trigerred and the other activity (activity B) comes into display with the progress bar. If I press the back button in activity B (with the progress bar still visible) I go to Activity A. But after some time (when the task completes) Activity B becomes Visible.</p>
  
  <p>I wish to stop the asynctask (which is associated with Activity A) when the user presses back button in Activity B.</p>
  
  <p>Kindly help me and thanks for your help </p>