我尝试在我的 Android 应用程序中实现 BugSense,但我无法看到我提交的自定义数据。我真的找不到问题出在哪里,因为我收到错误报告但没有自定义数据。我实现了 com.bugsense.trace.ExceptionCallback 以在“lastBreath”方法中接收所有未处理的异常。
这是我的示例代码:
@Override
public void lastBreath(Exception arg0) {
Log.w(TAG, "executing lastBreath");
// adding current details to crash data
HashMap<String, String> errorDetails = new HashMap<String, String>();
errorDetails.put("testKey", "testValue");
errorDetails.put("testKey2", "testValue2");
BugSenseHandler.sendExceptionMap(errorDetails, arg0);
Log.w(TAG, "lastBreath executed");
}
这会生成错误报告,但我不知道在哪里可以找到“testKey”和“testKey2”的自定义值。我用的是官网的示例代码,问题出在哪里?谢谢你的帮助。