private void abortLoading(){
  if (thread == null)   return;
  if (thread.isAlive()) {
    thread.interrupt();
    try {
      thread.join();
    }
 catch (    InterruptedException e) {
      e.printStackTrace();
    }
  }
}

private void abortLoading ( ) { if ( thread == null ) return ; if ( thread . isAlive ( ) ) { thread . interrupt ( ) ; try { thread . join ( ) ; } catch ( InterruptedException e ) { e . printStackTrace ( ) ; } } }
stop loading data task
