public boolean isUploadInProgress(){
  return mUploadStarted.get();
}

public boolean isUploadInProgress ( ) { return mUploadStarted . get ( ) ; }
as soon as this method return true , upload can be cancel via cancel ( ) .
