作者:苗淑香哈哈_405_408 | 来源:互联网 | 2023-05-26 11:36
本文整理了Java中android.support.v4.app.FragmentActivity.onDestroy()方法的一些代码示例,展示了FragmentActivity.onDestroy
本文整理了Java中android.support.v4.app.FragmentActivity.onDestroy()
方法的一些代码示例,展示了FragmentActivity.onDestroy()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。FragmentActivity.onDestroy()
方法的具体详情如下:
包路径:android.support.v4.app.FragmentActivity
类名称:FragmentActivity
方法名:onDestroy
FragmentActivity.onDestroy介绍
[英]Destroy all fragments and loaders.
[中]销毁所有碎片和装载机。
代码示例
代码示例来源:origin: square/dagger
@Override protected void onDestroy() {
// Eagerly clear the reference to the activity graph to allow it to be garbage collected as
// soon as possible.
activityGraph = null;
super.onDestroy();
}
代码示例来源:origin: commonsguy/cw-omnibus
@Override
protected void onDestroy() {
sub.dispose();
super.onDestroy();
}
代码示例来源:origin: commonsguy/cw-omnibus
@Override
public void onDestroy() {
Log.d(getClass().getSimpleName(), "onDestroy()");
super.onDestroy();
}
}
代码示例来源:origin: commonsguy/cw-omnibus
@Override
public void onDestroy() {
Log.d(getClass().getSimpleName(), "onDestroy()");
super.onDestroy();
}
}
代码示例来源:origin: facebook/facebook-android-sdk
@Override
public void onDestroy() {
super.onDestroy();
accessTokenTracker.stopTracking();
}
代码示例来源:origin: GitLqr/LQRWeChat
@Override
protected void onDestroy() {
super.onDestroy();
if (mPresenter != null) {
mPresenter.detachView();
}
}
代码示例来源:origin: Karumi/Rosie
/**
* Connects the Activity onDestroy method with the presenter used in this Activity.
*/
@Override protected void onDestroy() {
presenterLifeCycleLinker.destroyPresenters();
super.onDestroy();
}
代码示例来源:origin: fengjundev/Android-Skin-Loader
@Override
protected void onDestroy() {
super.onDestroy();
SkinManager.getInstance().detach(this);
}
代码示例来源:origin: konmik/nucleus
@Override
protected void onDestroy() {
super.onDestroy();
presenterDelegate.onDestroy(!isChangingConfigurations());
}
}
代码示例来源:origin: gzu-liyujiang/AndroidPicker
@CallSuper
@Override
public void onDestroy() {
super.onDestroy();
LogUtils.verbose(className + " onDestroy");
for (LifeCycleListener listener : lifeCycleListeners) {
listener.onActivityDestroyed(this);
}
}
代码示例来源:origin: facebook/facebook-android-sdk
@Override
protected void onDestroy() {
super.onDestroy();
profileTracker.stopTracking();
LoginManager.getInstance().unregisterCallback(callbackManager);
}
代码示例来源:origin: chentao0707/SimplifyReader
@Override
protected void onDestroy() {
super.onDestroy();
ButterKnife.reset(this);
NetStateReceiver.removeRegisterObserver(mNetChangeObserver);
if (isBindEventBusHere()) {
EventBus.getDefault().unregister(this);
}
}
代码示例来源:origin: TommyLemon/Android-ZBLibrary
/**销毁并回收内存
* @warn 子类如果要使用这个方法内用到的变量,应重写onDestroy方法并在super.onDestroy();前操作
*/
@Override
protected void onDestroy() {
Log.d(TAG, "\n onDestroy <<<<<<<<<<<<<<<<<<<<<<<");
dismissProgressDialog();
BaseBroadcastReceiver.unregister(context, receiver);
ThreadManager.getInstance().destroyThread(threadNameList);
if (view != null) {
try {
view.destroyDrawingCache();
} catch (Exception e) {
Log.w(TAG, "onDestroy try { view.destroyDrawingCache();" +
" >> } catch (Exception e) {\n" + e.getMessage());
}
}
isAlive = false;
isRunning = false;
super.onDestroy();
inflater = null;
view = null;
tvBaseTitle = null;
fragmentManager = null;
progressDialog = null;
threadNameList = null;
intent = null;
cOntext= null;
Log.d(TAG, "onDestroy >>>>>>>>>>>>>>>>>>>>>>>>\n");
}
代码示例来源:origin: TommyLemon/APIJSON
super.onDestroy();
代码示例来源:origin: omadahealth/LolliPin
@Override
protected void onDestroy() {
super.onDestroy();
LocalBroadcastManager.getInstance(this).unregisterReceiver(mPinCancelledReceiver);
}
代码示例来源:origin: tianshaojie/AndroidFine
@Override
protected void onDestroy() {
super.onDestroy();
// 结束Activity从堆栈中移除
AppManager.getAppManager().finishActivity(this);
}
代码示例来源:origin: handsomezhou/PinyinSearchLibrary
@Override
protected void onDestroy() {
// TODO Auto-generated method stub
super.onDestroy();
}
代码示例来源:origin: ManbangGroup/Phantom
@Override
protected void onDestroy() {
super.onDestroy();
nm.cancelAll();
}
}
代码示例来源:origin: zhaoyang21cn/iLiveSDK_Android_Suixinbo
@Override
protected void onDestroy() {
try {
unregisterReceiver(recv);
unregisterReceiver(netWorkStateReceiver);
}catch (Exception e){
}
super.onDestroy();
}
代码示例来源:origin: gdutxiaoxu/CoordinatorLayoutExample
@Override
protected void onDestroy() {
super.onDestroy();
ActivityCollector.remove(this);
if (dialog != null) {
dialog.cancel();
dialog.dismiss();
}
if (mPresenter != null) {
mPresenter.onDestroy();
}
}