本文整理了Java中android.app.Activity.onPause()
方法的一些代码示例,展示了Activity.onPause()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Activity.onPause()
方法的具体详情如下:
包路径:android.app.Activity
类名称:Activity
方法名:onPause
暂无
代码示例来源:origin: aporter/coursera-android
@Override
protected void onPause() {
super.onPause();
// Unregister all sensors
mSensorManager.unregisterListener(this);
}
代码示例来源:origin: google/ExoPlayer
@Override
public void onPause() {
super.onPause();
player.reset();
}
代码示例来源:origin: google/ExoPlayer
@Override
public void onPause() {
super.onPause();
if (Util.SDK_INT <= 23) {
maybeStopHostedTest();
}
}
代码示例来源:origin: facebook/stetho
@Override
protected void onPause() {
super.onPause();
getPrefs().unregisterOnSharedPreferenceChangeListener(mToastingPrefListener);
}
代码示例来源:origin: lipangit/JiaoZiVideoPlayer
@Override
protected void onPause() {
super.onPause();
Jzvd.releaseAllVideos();
}
}
代码示例来源:origin: commonsguy/cw-omnibus
@Override
public void onPause() {
super.onPause();
myLocationManager.removeUpdates(onLocation);
}
代码示例来源:origin: commonsguy/cw-omnibus
@Override
public void onPause() {
helper.onPause();
super.onPause();
}
代码示例来源:origin: commonsguy/cw-omnibus
@Override
public void onPause() {
super.onPause();
myLocationManager.removeUpdates(onLocation);
}
代码示例来源:origin: commonsguy/cw-omnibus
@Override
public void onPause() {
helper.onPause();
super.onPause();
}
代码示例来源:origin: robolectric/robolectric
@Override
public void onPause() {
transcript.add("onPause");
super.onPause();
}
代码示例来源:origin: nickbutcher/plaid
@Override
protected void onPause() {
if (monitoringConnectivity) {
final ConnectivityManager connectivityManager
= (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);
connectivityManager.unregisterNetworkCallback(connectivityCallback);
monitoringConnectivity = false;
}
super.onPause();
}
代码示例来源:origin: Bilibili/DanmakuFlameMaster
@Override
protected void onPause() {
super.onPause();
if (mDanmakuView != null && mDanmakuView.isPrepared()) {
mDanmakuView.pause();
}
}
代码示例来源:origin: Bilibili/DanmakuFlameMaster
@Override
protected void onPause() {
super.onPause();
if (mDanmakuView != null && mDanmakuView.isPrepared()) {
mDanmakuView.pause();
}
}
代码示例来源:origin: trello/RxLifecycle
@Override
@CallSuper
protected void onPause() {
lifecycleSubject.onNext(ActivityEvent.PAUSE);
super.onPause();
}
代码示例来源:origin: commonsguy/cw-omnibus
@Override
public void onPause() {
if (isFinishing()) {
nfc.disableForegroundDispatch(this);
inWriteMode=false;
}
super.onPause();
}
代码示例来源:origin: commonsguy/cw-omnibus
@Override
public void onPause() {
if (isFinishing()) {
cleanUpWritingToTag();
}
super.onPause();
}
代码示例来源:origin: google/ExoPlayer
@Override
public void onPause() {
super.onPause();
if (Util.SDK_INT <= 23) {
maybeStopHostedTest();
}
}
代码示例来源:origin: robolectric/robolectric
@Override
protected void onPause() {
super.onPause();
transcribeWhilePaused("onPause");
transcript.add("finishedOnPause");
}
代码示例来源:origin: libgdx/libgdx
@Override
protected void onPause () {
boolean isContinuous = graphics.isContinuousRendering();
boolean isContinuousEnforced = AndroidGraphics.enforceContinuousRendering;
// from here we don't want non continuous rendering
AndroidGraphics.enforceContinuousRendering = true;
graphics.setContinuousRendering(true);
// calls to setContinuousRendering(false) from other thread (ex: GLThread)
// will be ignored at this point...
graphics.pause();
input.onPause();
if (isFinishing()) {
graphics.clearManagedCaches();
graphics.destroy();
}
AndroidGraphics.enforceContinuousRendering = isContinuousEnforced;
graphics.setContinuousRendering(isContinuous);
graphics.onPauseGLSurfaceView();
super.onPause();
}
代码示例来源:origin: libgdx/libgdx
@Override
protected void onPause () {
boolean isContinuous = graphics.isContinuousRendering();
boolean isContinuousEnforced = AndroidGraphics.enforceContinuousRendering;
// from here we don't want non continuous rendering
AndroidGraphics.enforceContinuousRendering = true;
graphics.setContinuousRendering(true);
// calls to setContinuousRendering(false) from other thread (ex: GLThread)
// will be ignored at this point...
graphics.pause();
input.onPause();
if (isFinishing()) {
graphics.clearManagedCaches();
graphics.destroy();
}
AndroidGraphics.enforceContinuousRendering = isContinuousEnforced;
graphics.setContinuousRendering(isContinuous);
graphics.onPauseGLSurfaceView();
super.onPause();
}
内容来源于网络,如有侵权,请联系作者删除!