From 6121d8af7453bf2613f69484e8b4f6d65d72f7f7 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Wed, 6 Mar 2019 17:18:55 +0200 Subject: [PATCH] add version/API level info to the crash report --- .../ktnx/mobileledger/ui/activity/CrashReportingActivity.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/activity/CrashReportingActivity.java b/app/src/main/java/net/ktnx/mobileledger/ui/activity/CrashReportingActivity.java index 7a16730b..6a6f26db 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/activity/CrashReportingActivity.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/activity/CrashReportingActivity.java @@ -17,6 +17,7 @@ package net.ktnx.mobileledger.ui.activity; +import android.os.Build; import android.os.Bundle; import android.util.Log; @@ -38,6 +39,9 @@ public abstract class CrashReportingActivity extends AppCompatActivity { public void uncaughtException(Thread t, Throwable e) { StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw); + + pw.format("OS version: %s; API level %d\n\n", Build.VERSION.RELEASE, + Build.VERSION.SDK_INT); e.printStackTrace(pw); Log.e(null, sw.toString()); -- 2.39.5