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

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

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

Instrumentation.onException介绍

暂无

代码示例

代码示例来源:origin: android-hacker/VirtualXposed

@Override
public boolean onException(Object obj, Throwable e) {
  return base.onException(obj, e);
}

代码示例来源:origin: android-hacker/VirtualXposed

if (!mInstrumentation.onException(mInitialApplication, e)) {

代码示例来源:origin: limpoxe/Android-Plugin-Framework

@Override
public boolean onException(Object obj, Throwable throwable) {
  try {
    if (obj instanceof Activity) {
      ((Activity) obj).finish();
    } else if (obj instanceof Service) {
      ((Service) obj).stopSelf();
    }
} catch (Exception e1) {
  //
}
  return real.onException(obj, throwable);
}

代码示例来源:origin: darkskygit/VirtualApp

@Override
public boolean onException(Object obj, Throwable e) {
  return base.onException(obj, e);
}

代码示例来源:origin: bzsome/VirtualApp-x326

@Override
public boolean onException(Object obj, Throwable e) {
  return base.onException(obj, e);
}

代码示例来源:origin: luili16/UIMocker

@Override
@CallSuper
public boolean onException(Object obj, Throwable e) {
  if (DEBUG) {
    Logger.d(TAG,"onException");
  }
  return mInstrumentation.onException(obj, e);
}

代码示例来源:origin: bzsome/VirtualApp-x326

if (!mInstrumentation.onException(mInitialApplication, e)) {
  throw new RuntimeException(
      "Unable to create application " + mInitialApplication.getClass().getName()

代码示例来源:origin: darkskygit/VirtualApp

if (!mInstrumentation.onException(mInitialApplication, e)) {

相关文章

Instrumentation类方法