本文整理了Java中android.app.Activity.onDestroy()
方法的一些代码示例,展示了Activity.onDestroy()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Activity.onDestroy()
方法的具体详情如下:
包路径:android.app.Activity
类名称:Activity
方法名:onDestroy
暂无
代码示例来源:origin: libgdx/libgdx
@Override
protected void onDestroy () {
super.onDestroy();
}
代码示例来源:origin: libgdx/libgdx
@Override
protected void onDestroy () {
super.onDestroy();
}
代码示例来源:origin: androidannotations/androidannotations
@Override
protected void onDestroy() {
super.onDestroy();
// Robolectric does not create a new instance after Activity.recreate
// we simulate the new instance by clearing our fields
maintainedDependency = null;
recreatedDependency = null;
maintainedAbstracted = null;
someObject = null;
}
代码示例来源:origin: Justson/AgentWeb
@Override
protected void onDestroy() {
super.onDestroy();
}
}
代码示例来源:origin: commonsguy/cw-omnibus
@Override
public void onDestroy() {
executor.shutdown();
super.onDestroy();
}
代码示例来源:origin: android-hacker/VirtualXposed
@Override
protected void onDestroy() {
if (Log.isLoggable(TAG, Log.VERBOSE)) {
Log.v(TAG, "ChooseTypeAndAccountActivity.onDestroy()");
}
super.onDestroy();
}
代码示例来源:origin: square/leakcanary
@Override protected void onDestroy() {
super.onDestroy();
LoadLeaks.forgetActivity();
}
代码示例来源:origin: ReactiveX/RxAndroid
@Override protected void onDestroy() {
super.onDestroy();
disposables.clear();
}
代码示例来源:origin: nickbutcher/plaid
@Override
protected void onDestroy() {
dataManager.cancelLoading();
super.onDestroy();
}
代码示例来源:origin: google/ExoPlayer
@Override
public void onDestroy() {
player.release();
super.onDestroy();
}
代码示例来源:origin: facebook/stetho
@Override
protected void onDestroy() {
mSimpleIRCConnectionManager.shutdown();
mConnectionExecutor.shutdown();
mIsTearingDown = true;
super.onDestroy();
}
代码示例来源:origin: Bilibili/DanmakuFlameMaster
@Override
protected void onDestroy() {
super.onDestroy();
if (mDanmakuView != null) {
// dont forget release!
mDanmakuView.release();
mDanmakuView = null;
}
}
代码示例来源:origin: robolectric/robolectric
@Override
protected void onDestroy() {
super.onDestroy();
}
代码示例来源:origin: commonsguy/cw-omnibus
@Override
protected void onDestroy() {
if (adapter!=null) {
adapter.close();
}
super.onDestroy();
}
代码示例来源:origin: greenrobot/EventBus
public void onDestroy() {
if (testRunner != null) {
testRunner.cancel();
}
controlBus.unregister(this);
super.onDestroy();
}
}
代码示例来源:origin: robolectric/robolectric
@Override
public void onDestroy() {
transcript.add("onDestroy");
super.onDestroy();
}
代码示例来源:origin: trello/RxLifecycle
@Override
@CallSuper
protected void onDestroy() {
lifecycleSubject.onNext(ActivityEvent.DESTROY);
super.onDestroy();
}
}
代码示例来源:origin: android-hacker/VirtualXposed
@Override
protected void onDestroy() {
if (dialog != null && dialog.isShowing()) {
dialog.dismiss();
}
super.onDestroy();
}
代码示例来源:origin: robolectric/robolectric
@Override
protected void onDestroy() {
super.onDestroy();
transcribeWhilePaused("onDestroy");
transcript.add("finishedOnDestroy");
}
代码示例来源:origin: Bilibili/DanmakuFlameMaster
@Override
protected void onDestroy() {
super.onDestroy();
if (mDanmakuView != null) {
// dont forget release!
mDanmakuView.release();
mDanmakuView = null;
}
ImageLoader.getInstance().destroy();
}
内容来源于网络,如有侵权,请联系作者删除!