From: Damyan Ivanov Date: Wed, 6 Mar 2019 15:18:55 +0000 (+0200) Subject: add version/API level info to the crash report X-Git-Tag: v0.8~44 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=6121d8af7453bf2613f69484e8b4f6d65d72f7f7;p=mobile-ledger.git add version/API level info to the crash report --- 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());