本文整理了Java中android.app.Instrumentation.callActivityOnSaveInstanceState()
方法的一些代码示例,展示了Instrumentation.callActivityOnSaveInstanceState()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Instrumentation.callActivityOnSaveInstanceState()
方法的具体详情如下:
包路径:android.app.Instrumentation
类名称:Instrumentation
方法名:callActivityOnSaveInstanceState
暂无
代码示例来源:origin: android-hacker/VirtualXposed
@Override
public void callActivityOnSaveInstanceState(Activity activity, Bundle outState) {
base.callActivityOnSaveInstanceState(activity, outState);
}
代码示例来源:origin: android-hacker/VirtualXposed
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
@Override
public void callActivityOnSaveInstanceState(Activity activity, Bundle outState,
PersistableBundle outPersistentState) {
base.callActivityOnSaveInstanceState(activity, outState, outPersistentState);
}
代码示例来源:origin: robolectric/robolectric
public ActivityController<T> saveInstanceState(Bundle outState) {
shadowMainLooper.runPaused(
() -> getInstrumentation().callActivityOnSaveInstanceState(component, outState));
return this;
}
代码示例来源:origin: ksoichiro/Android-ObservableScrollView
@Override
public void run() {
Bundle outState = new Bundle();
test.getInstrumentation().callActivityOnSaveInstanceState(activity, outState);
test.getInstrumentation().callActivityOnPause(activity);
test.getInstrumentation().callActivityOnResume(activity);
test.getInstrumentation().callActivityOnRestoreInstanceState(activity, outState);
}
});
代码示例来源:origin: limpoxe/Android-Plugin-Framework
@Override
public void callActivityOnSaveInstanceState(Activity activity, Bundle outState) {
PluginInjector.injectInstrumetionFor360Safe(activity, this);
if (outState != null) {
outState.setClassLoader(activity.getClassLoader());
}
real.callActivityOnSaveInstanceState(activity, outState);
}
代码示例来源:origin: iqiyi/Neptune
/**
* 执行插件的onSaveInstanceState方法
*
* @see android.app.Activity#onSaveInstanceState(android.os.Bundle)
*/
@Override
public void callOnSaveInstanceState(Bundle outState) {
if (null != mHostInstr) {
mHostInstr.callActivityOnSaveInstanceState(mPlugin, outState);
}
}
代码示例来源:origin: gdpancheng/LoonAndroid3
@Override
public void callActivityOnSaveInstanceState(Activity activity, Bundle outState) {
// 保存一些数据
super.callActivityOnSaveInstanceState(activity, outState);
}
代码示例来源:origin: darkskygit/VirtualApp
@Override
public void callActivityOnSaveInstanceState(Activity activity, Bundle outState) {
base.callActivityOnSaveInstanceState(activity, outState);
}
代码示例来源:origin: bzsome/VirtualApp-x326
@Override
public void callActivityOnSaveInstanceState(Activity activity, Bundle outState) {
base.callActivityOnSaveInstanceState(activity, outState);
}
代码示例来源:origin: darkskygit/VirtualApp
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
@Override
public void callActivityOnSaveInstanceState(Activity activity, Bundle outState,
PersistableBundle outPersistentState) {
base.callActivityOnSaveInstanceState(activity, outState, outPersistentState);
}
代码示例来源:origin: bzsome/VirtualApp-x326
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
@Override
public void callActivityOnSaveInstanceState(Activity activity, Bundle outState,
PersistableBundle outPersistentState) {
base.callActivityOnSaveInstanceState(activity, outState, outPersistentState);
}
代码示例来源:origin: luili16/UIMocker
@Override
@CallSuper
public void callActivityOnSaveInstanceState(Activity activity, Bundle outState) {
if (DEBUG) {
Logger.d(TAG,"callActivityOnSaveInstanceState(Activity activity, Bundle outState)");
}
mInstrumentation.callActivityOnSaveInstanceState(activity, outState);
}
代码示例来源:origin: luili16/UIMocker
@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
@Override
@CallSuper
public void callActivityOnSaveInstanceState(Activity activity, Bundle outState,
PersistableBundle outPersistentState) {
if (DEBUG) {
Logger.d(TAG,"callActivityOnSaveInstanceState(Activity activity, Bundle outState,outPersistentState)");
}
mInstrumentation.callActivityOnSaveInstanceState(activity, outState, outPersistentState);
}
代码示例来源:origin: org.robolectric/shadows-framework
public ActivityController<T> saveInstanceState(Bundle outState) {
shadowMainLooper.runPaused(
() -> getInstrumentation().callActivityOnSaveInstanceState(component, outState));
return this;
}
内容来源于网络,如有侵权,请联系作者删除!