Code example for ExecutorService

Methods: shutdown

0
  } 
 
  @Override 
  public void onDestroy() { 
    super.onDestroy(); 
    executor.shutdown();
    shutdown(); 
  } 
 
  @Override 
  public IBinder onBind(Intent intent) {
    return binder;
  } 
 
  public void shutdown() { 
    shutdownChallengeListener(); 
    markAsVerifying(false); 
    registrationState = new RegistrationState(RegistrationState.STATE_IDLE);
  } 
 
  public synchronized int getSecondsRemaining() {