Пример #1
0
 @Override
 public void onTerminate() {
   // TODO Auto-generated method stub
   super.onTerminate();
   AsyncImageLoader.cleanRamCache();
   Log.d(Constant.LOG_TAG, "onTerminate clear the ram cache");
 }
 @Override
 public void onTerminate() {
   super.onTerminate();
   for (HandlerTimer timer : timers) {
     timer.stop();
   }
 }
Пример #3
0
 @Override
 public void onTerminate() {
   super.onTerminate();
   Intent serviceIntent = new Intent(getApplicationContext(), LocalService.class);
   this.stopService(serviceIntent);
   Log.d(TAG, "onTerminate");
 }
Пример #4
0
  @Override
  public void onTerminate() {

    Log.d(TAG, "OnTerminate");

    super.onTerminate();
  }
Пример #5
0
 @Override
 public void onTerminate() {
   super.onTerminate();
   if (LogUtil.DEBUG) {
     LogUtil.e(this, "onTerminate");
   }
 }
Пример #6
0
 @Override
 public void onTerminate() {
   super.onTerminate();
   if (routingHelper != null) {
     routingHelper.getVoiceRouter().onApplicationTerminate(this);
   }
 }
 @Override
 public void onTerminate() {
   super.onTerminate();
   // release whatever is needed
   mBeaconManager.unbind(this);
   mBeaconManager = null;
   SugarContext.terminate();
 }
 @Override
 public void onTerminate() {
   super.onTerminate();
   if (mApplicationLayers != null) {
     mApplicationLayers.cleanup();
     mApplicationLayers = null;
   }
 }
Пример #9
0
  @Override
  public void onTerminate() {
    super.onTerminate();

    // Make sure the database is closed.
    db.close();
    dbOpen = false;
  }
  @Override
  public void onTerminate() {
    super.onTerminate();

    // on terminate is never called
    // ref: http://stackoverflow.com/questions/15162562/application-lifecycle
    if (BuildConfig.DEBUG) Log.d(LOGCAT, "Application terminated");
  }
Пример #11
0
  @Override
  public void onTerminate() {
    super.onTerminate();

    // other code
    // ...

    Cube.onTerminate();
  }
Пример #12
0
  /** There's no guarantee that this function is ever called. */
  @Override
  public void onTerminate() {
    super.onTerminate();

    unregisterReceiver(mModel);

    ContentResolver resolver = getContentResolver();
    resolver.unregisterContentObserver(mFavoritesObserver);
  }
Пример #13
0
 public void onTerminate() {
   super.onTerminate();
   this.unbindService(notificationServiceConnection);
   this.unbindService(moduleServiceConnection);
   shutdownHttpClient();
   EventBus.getEventBus(TmpConstants.EVENTBUS_COMMON).unregister(originalParser);
   EventBus.getEventBus(TmpConstants.EVENTBUS_COMMON).unregister(this);
   EventBus.getEventBus(TmpConstants.EVENTBUS_COMMON).unregister(mdmSubsrcriber);
 }
Пример #14
0
 @Override
 public void onTerminate() {
   super.onTerminate();
   // Unbind from the service
   if (mBound) {
     unbindService(mConnection);
     mBound = false;
   }
 }
  /** There's no guarantee that this function is ever called. */
  @Override
  public void onTerminate() {
    super.onTerminate();
    SettingUtils.saveScreenSettings(this);
    unregisterReceiver(mModel);

    ContentResolver resolver = getContentResolver();
    resolver.unregisterContentObserver(mFavoritesObserver);
  }
  @Override
  public void onTerminate() {
    super.onTerminate();

    /*
     * Stop the Kaa client. Release all network connections and application
     * resources. Shut down all the Kaa client tasks.
     */
    mClient.stop();
    mKaaStarted = false;
  }
Пример #17
0
 @Override
 public void onTerminate() {
   super.onTerminate();
   if (routingHelper != null) {
     routingHelper.getVoiceRouter().onApplicationTerminate();
   }
   if (DashRateUsFragment.shouldShow(osmandSettings)) {
     osmandSettings.RATE_US_STATE.set(DashRateUsFragment.RateUsState.IGNORED);
   }
   getNotificationHelper().removeServiceNotification();
 }
Пример #18
0
 @Override
 public void onTerminate() {
   if (null != mLocationClient) {
     mLocationClient.stop();
     mLocationClient = null;
   }
   if (null != dbHelper) {
     rdb.close();
     wdb.close();
     dbHelper.close();
   }
   super.onTerminate();
 }
Пример #19
0
  @Override
  public void onTerminate() {
    stopImServiceIfInactive();
    if (mImService != null) {
      try {
        mImService.removeConnectionCreatedListener(mConnCreationListener);
      } catch (RemoteException e) {
        Log.w(LOG_TAG, "failed to remove ConnectionCreatedListener");
      }
    }

    super.onTerminate();
  }
 @Override
 public void onTerminate() {
   super.onTerminate();
   // Stop the connection services
   if (mBluetoothConnectionService != null) mBluetoothConnectionService.stop();
   if (mWiFiConnectionService != null) {
     mWiFiConnectionService.stop();
     mWiFiConnectionService = null;
   }
   stopService(intent);
   mLogArrayAdapter.clear();
   Log.i(TAG, "onTerminated");
 }
  /*
   * The exit of the applictaion(non-Javadoc)
   *
   * @see android.app.Application#onTerminate()
   */
  @Override
  public void onTerminate() {
    // TODO Auto-generated method stub
    super.onTerminate();

    saveUserBaseData();

    // stop the main service
    Intent it = new Intent();
    it.setClass(this, MainService.class);
    stopService(it);

    // stop the notification service
    stopNotificationService();

    activityManager.exit();
  }
  @Override
  public void onTerminate() {
    Log.d(cgSettings.tag, "Terminating c:geo...");

    if (geo != null) {
      geo.closeGeo();
      geo = null;
    }

    if (dir != null) {
      dir.closeDir();
      dir = null;
    }

    if (storage != null) {
      storage.clean();
      storage.closeDb();
      storage = null;
    }

    super.onTerminate();
  }
Пример #23
0
  /** There's no guarantee that this function is ever called. */
  @Override
  public void onTerminate() {
    super.onTerminate();

    unregisterReceiver(mModel);
    // (BugID:134985 by wenliang.dwl) for desktop continuous feature
    unregisterReceiver(mContinuousHomeShellReceiver);

    ContentResolver resolver = getContentResolver();
    resolver.unregisterContentObserver(mFavoritesObserver);

    /* YUNOS BEGIN */
    // ##date:2013/11/20 ##author:zhangqiang.zq
    // add theme icon
    ThemeChangedListener.getInstance(getApplicationContext()).unregister(getApplicationContext());
    /* YUNOS END */

    FontChangedListener.getInstance(getApplicationContext()).unregister(getApplicationContext());

    // edit by dongjun for traffic panel begin
    this.mModel.destroy();
    mContext = null;
    // edit by dongjun for traffic panel end
  }
Пример #24
0
 @Override
 public void onTerminate() {
   LayoutInflater.clearInstances();
   super.onTerminate();
 }
Пример #25
0
 @Override
 public void onTerminate() {
   Log.i(TAG, "onTerminated");
   super.onTerminate();
 }
Пример #26
0
 @Override
 public void onTerminate() {
   if (local != null) local.close();
   super.onTerminate();
 }
Пример #27
0
 @Override
 public void onTerminate() {
   super.onTerminate();
   setStaticContext(null);
 }
Пример #28
0
 @Override
 public void onTerminate() {
   super.onTerminate();
 }
 @Override
 public void onTerminate() {
   WebLogger.closeAll();
   super.onTerminate();
   Log.i(t, "onTerminate");
 }
Пример #30
0
 @Override
 public void onTerminate() {
   super.onTerminate();
   NetworkStatusManager.getInstance().stopListening();
 }