@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(); } }
@Override public void onTerminate() { super.onTerminate(); Intent serviceIntent = new Intent(getApplicationContext(), LocalService.class); this.stopService(serviceIntent); Log.d(TAG, "onTerminate"); }
@Override public void onTerminate() { Log.d(TAG, "OnTerminate"); super.onTerminate(); }
@Override public void onTerminate() { super.onTerminate(); if (LogUtil.DEBUG) { LogUtil.e(this, "onTerminate"); } }
@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; } }
@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"); }
@Override public void onTerminate() { super.onTerminate(); // other code // ... Cube.onTerminate(); }
/** There's no guarantee that this function is ever called. */ @Override public void onTerminate() { super.onTerminate(); unregisterReceiver(mModel); ContentResolver resolver = getContentResolver(); resolver.unregisterContentObserver(mFavoritesObserver); }
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); }
@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; }
@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(); }
@Override public void onTerminate() { if (null != mLocationClient) { mLocationClient.stop(); mLocationClient = null; } if (null != dbHelper) { rdb.close(); wdb.close(); dbHelper.close(); } super.onTerminate(); }
@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(); }
/** 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 }
@Override public void onTerminate() { LayoutInflater.clearInstances(); super.onTerminate(); }
@Override public void onTerminate() { Log.i(TAG, "onTerminated"); super.onTerminate(); }
@Override public void onTerminate() { if (local != null) local.close(); super.onTerminate(); }
@Override public void onTerminate() { super.onTerminate(); setStaticContext(null); }
@Override public void onTerminate() { super.onTerminate(); }
@Override public void onTerminate() { WebLogger.closeAll(); super.onTerminate(); Log.i(t, "onTerminate"); }
@Override public void onTerminate() { super.onTerminate(); NetworkStatusManager.getInstance().stopListening(); }