Code example for ScheduledThreadPoolExecutor

Methods: shutdown

0
  } 
 
  @Override 
  public void onDestroy() { 
    mgr.removeUpdates(this);
    executor.shutdown();
 
    super.onDestroy(); 
  } 
 
  @Override 
  public IBinder onBind(Intent arg0) {
    return(null); 
  } 
 
  @Override 
  public void onLocationChanged(Location location) {
    if (!isScheduled) {
      isScheduled=true;
      executor.scheduleAtFixedRate(this, 0, PERIOD_SECONDS,