android.app.Instrumentation.callActivityOnSaveInstanceState()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(4.1k)|赞(0)|评价(0)|浏览(177)

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

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;
}

相关文章

Instrumentation类方法