本文整理了Java中android.app.Activity.onResume()
方法的一些代码示例,展示了Activity.onResume()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Activity.onResume()
方法的具体详情如下:
包路径:android.app.Activity
类名称:Activity
方法名:onResume
暂无
代码示例来源:origin: commonsguy/cw-omnibus
@Override
public void onResume() {
super.onResume();
Log.d(getClass().getSimpleName(), "onResume()");
}
代码示例来源:origin: nickbutcher/plaid
@Override
protected void onResume() {
super.onResume();
checkConnectivity();
}
代码示例来源:origin: google/ExoPlayer
@Override
public void onResume() {
super.onResume();
player.init(this, playerView);
}
代码示例来源:origin: facebook/stetho
@Override
protected void onResume() {
super.onResume();
getPrefs().registerOnSharedPreferenceChangeListener(mToastingPrefListener);
}
代码示例来源:origin: daniulive/SmarterStreaming
@Override
protected void onResume() {
Log.i(TAG, "Run into activity onResume++");
if(isPlaying && playerHandle != 0)
{
libPlayer.SmartPlayerSetOrientation(playerHandle, currentOrigentation);
}
super.onResume();
}
代码示例来源:origin: daniulive/SmarterStreaming
@Override
protected void onResume() {
Log.i(TAG, "Run into activity onResume++");
if(playerHandle != 0)
{
libPlayer.SmartPlayerSetOrientation(playerHandle, currentOrigentation);
}
super.onResume();
}
代码示例来源:origin: commonsguy/cw-omnibus
@Override
public void onResume() {
super.onResume();
myLocationManager.requestLocationUpdates(PROVIDER, 10000,
100.0f,
onLocation);
}
代码示例来源:origin: commonsguy/cw-omnibus
@Override
protected void onResume() {
super.onResume();
camera.start();
}
代码示例来源:origin: commonsguy/cw-omnibus
@Override
public void onResume() {
super.onResume();
chrono.run();
}
代码示例来源:origin: facebook/facebook-android-sdk
@Override
protected void onResume() {
super.onResume();
setPermissionsSwitches();
}
代码示例来源:origin: facebook/facebook-android-sdk
@Override
protected void onResume() {
super.onResume();
if (shouldCloseCustomTab) {
// The custom tab was closed without getting a result.
sendResult(RESULT_CANCELED, null);
}
shouldCloseCustomTab = true;
}
代码示例来源:origin: square/leakcanary
@Override protected void onResume() {
super.onResume();
LoadLeaks.load(this, getLeakDirectoryProvider(this));
}
代码示例来源:origin: robolectric/robolectric
@Override
public void onResume() {
transcript.add("onResume");
super.onResume();
}
}
代码示例来源:origin: trello/RxLifecycle
@Override
@CallSuper
protected void onResume() {
super.onResume();
lifecycleSubject.onNext(ActivityEvent.RESUME);
}
代码示例来源:origin: greenrobot/EventBus
@Override
protected void onResume() {
super.onResume();
if (testRunner == null) {
TestParams testParams = (TestParams) getIntent().getSerializableExtra("params");
testRunner = new TestRunner(getApplicationContext(), testParams, controlBus);
if (testParams.getTestNumber() == 1) {
textViewResult.append("Events: " + testParams.getEventCount() + "\n");
}
textViewResult.append("Subscribers: " + testParams.getSubscriberCount() + "\n\n");
testRunner.start();
}
}
代码示例来源:origin: robolectric/robolectric
@Override
protected void onResume() {
super.onResume();
transcribeWhilePaused("onResume");
transcript.add("finishedOnResume");
}
代码示例来源:origin: Bilibili/DanmakuFlameMaster
@Override
protected void onResume() {
super.onResume();
if (mDanmakuView != null && mDanmakuView.isPrepared() && mDanmakuView.isPaused()) {
mDanmakuView.resume();
}
}
代码示例来源:origin: Bilibili/DanmakuFlameMaster
@Override
protected void onResume() {
super.onResume();
if (mDanmakuView != null && mDanmakuView.isPrepared() && mDanmakuView.isPaused()) {
mDanmakuView.resume();
}
}
代码示例来源:origin: libgdx/libgdx
@Override
protected void onResume () {
Gdx.app = this;
Gdx.input = this.getInput();
Gdx.audio = this.getAudio();
Gdx.files = this.getFiles();
Gdx.graphics = this.getGraphics();
Gdx.net = this.getNet();
input.onResume();
if (graphics != null) {
graphics.onResumeGLSurfaceView();
}
if (!firstResume) {
graphics.resume();
} else
firstResume = false;
this.isWaitingForAudio = true;
if (this.wasFocusChanged == 1 || this.wasFocusChanged == -1) {
this.audio.resume();
this.isWaitingForAudio = false;
}
super.onResume();
}
代码示例来源:origin: libgdx/libgdx
@Override
protected void onResume () {
Gdx.app = this;
Gdx.input = this.getInput();
Gdx.audio = this.getAudio();
Gdx.files = this.getFiles();
Gdx.graphics = this.getGraphics();
Gdx.net = this.getNet();
input.onResume();
if (graphics != null) {
graphics.onResumeGLSurfaceView();
}
if (!firstResume) {
graphics.resume();
} else
firstResume = false;
this.isWaitingForAudio = true;
if (this.wasFocusChanged == 1 || this.wasFocusChanged == -1) {
this.audio.resume();
this.isWaitingForAudio = false;
}
super.onResume();
}
内容来源于网络,如有侵权,请联系作者删除!