Firebase 碰撞分析 |捕获的异常是否显示?
Firebase Crashlytics | Are catched exceptions showed or not?
我正在使用异步任务并捕获如下所示的异常。
我发现我的 Firebase Crashlytics 中有很多错误,因为有很多异常。这是否意味着应用程序崩溃了还是因为我的代码?
因为如果我正常捕获它们,则不会出现崩溃,只会出现 Toast
我能以某种方式在 Firebase 中隐藏这些异常吗?
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
Handler handler = new Handler(context.getMainLooper());
handler.post(new Runnable() {
public void run() {
Toast.makeText(context, "Error occured", Toast.LENGTH_LONG).show();
}
});
}
所有未捕获的异常都将发送到 Crashlytics。捕获到的异常不会被发送,除非你写特定的代码到 log them as non-fatal errors.
我正在使用异步任务并捕获如下所示的异常。
我发现我的 Firebase Crashlytics 中有很多错误,因为有很多异常。这是否意味着应用程序崩溃了还是因为我的代码? 因为如果我正常捕获它们,则不会出现崩溃,只会出现 Toast 我能以某种方式在 Firebase 中隐藏这些异常吗?
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
Handler handler = new Handler(context.getMainLooper());
handler.post(new Runnable() {
public void run() {
Toast.makeText(context, "Error occured", Toast.LENGTH_LONG).show();
}
});
}
所有未捕获的异常都将发送到 Crashlytics。捕获到的异常不会被发送,除非你写特定的代码到 log them as non-fatal errors.