android.app.Activity.onStop()方法的使用及代码示例

x33g5p2x  于2022-01-15 转载在 其他  
字(2.9k)|赞(0)|评价(0)|浏览(222)

本文整理了Java中android.app.Activity.onStop()方法的一些代码示例,展示了Activity.onStop()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Activity.onStop()方法的具体详情如下:
包路径:android.app.Activity
类名称:Activity
方法名:onStop

Activity.onStop介绍

暂无

代码示例

代码示例来源:origin: commonsguy/cw-omnibus

@Override
protected void onStop() {
 mgr.unregisterListener(this);
 super.onStop();
}

代码示例来源:origin: commonsguy/cw-omnibus

@Override
protected void onStop() {
 mgr.unregisterListener(this);
 super.onStop();
}

代码示例来源:origin: commonsguy/cw-omnibus

@Override
protected void onStop() {
 mgr.unregisterListener(this);
 super.onStop();
}

代码示例来源:origin: commonsguy/cw-omnibus

@Override
public void onStop() {
 Log.d(getClass().getSimpleName(), "onStop()");
 
 super.onStop();
}

代码示例来源:origin: commonsguy/cw-omnibus

@Override
protected void onStop() {
 EventBus.getDefault().unregister(this);
 super.onStop();
}

代码示例来源:origin: commonsguy/cw-omnibus

@Override
public void onStop() {
 fadee.removeCallbacks(this);
 super.onStop();
}

代码示例来源:origin: commonsguy/cw-omnibus

@Override
public void onStop() {
 cm.removePrimaryClipChangedListener(this);
 super.onStop();
}

代码示例来源:origin: commonsguy/cw-omnibus

@Override
public void onStop() {
 recorder.release();
 recorder=null;
 super.onStop();
}

代码示例来源:origin: commonsguy/cw-omnibus

@Override
protected void onStop() {
 if (playServices!=null) {
  playServices.disconnect();
 }
 super.onStop();
}

代码示例来源:origin: commonsguy/cw-omnibus

@Override
protected void onStop() {
 if (playServices!=null) {
  playServices.disconnect();
 }
 super.onStop();
}

代码示例来源:origin: commonsguy/cw-omnibus

@Override
protected void onStop() {
 fotoapparat.stop();
 super.onStop();
}

代码示例来源:origin: commonsguy/cw-omnibus

@Override
protected void onStop() {
 EventBus.getDefault().unregister(this);
 super.onStop();
}

代码示例来源:origin: bumptech/glide

@Override
protected void onStop() {
 super.onStop();
 Api.get().removeMonitor(this);
}

代码示例来源:origin: google/ExoPlayer

@Override
public void onStop() {
 super.onStop();
 if (Util.SDK_INT > 23) {
  maybeStopHostedTest();
 }
 wakeLock.release();
 wakeLock = null;
 wifiLock.release();
 wifiLock = null;
}

代码示例来源:origin: robolectric/robolectric

@Override
public void onStop() {
 transcript.add("onStop");
 super.onStop();
}

代码示例来源:origin: trello/RxLifecycle

@Override
@CallSuper
protected void onStop() {
  lifecycleSubject.onNext(ActivityEvent.STOP);
  super.onStop();
}

代码示例来源:origin: commonsguy/cw-omnibus

@Override
public void onStop() {
 super.onStop();
 LocalBroadcastManager.getInstance(this).unregisterReceiver(onNotice);
}

代码示例来源:origin: robolectric/robolectric

@Override
protected void onStop() {
 super.onStop();
 transcribeWhilePaused("onStop");
 transcript.add("finishedOnStop");
}

代码示例来源:origin: commonsguy/cw-omnibus

@Override
protected void onStop() {
 video.pause();
 updateActions();
 lastPosition=video.getCurrentPosition();
 EventBus.getDefault().unregister(this);
 super.onStop();
}

代码示例来源:origin: google/ExoPlayer

@Override
public void onStop() {
 super.onStop();
 if (Util.SDK_INT > 23) {
  maybeStopHostedTest();
 }
 wakeLock.release();
 wakeLock = null;
 wifiLock.release();
 wifiLock = null;
}

相关文章

Activity类方法