public void reset(){
  for (  AsyncTask task : mTasks) {
    task.cancel(true);
  }
  mTasks.clear();
}

public void reset ( ) { for ( AsyncTask task : mTasks ) { task . cancel ( true ) ; } mTasks . clear ( ) ; }
called with the lifecycle of activity - onstop
