From d05b090c4f41566d6ff783f1fbc306bec9c7601b Mon Sep 17 00:00:00 2001 From: zoff99 Date: Wed, 8 Jan 2025 17:49:59 +0100 Subject: [PATCH] show also android api level and cpu abi on the about page --- .../zoffcc/applications/trifa/Aboutpage.java | 25 ++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/android-refimpl-app/app/src/main/java/com/zoffcc/applications/trifa/Aboutpage.java b/android-refimpl-app/app/src/main/java/com/zoffcc/applications/trifa/Aboutpage.java index e6b09e7ea..138999b28 100644 --- a/android-refimpl-app/app/src/main/java/com/zoffcc/applications/trifa/Aboutpage.java +++ b/android-refimpl-app/app/src/main/java/com/zoffcc/applications/trifa/Aboutpage.java @@ -25,6 +25,7 @@ import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.net.Uri; +import android.os.Build; import android.os.Bundle; import android.os.Environment; import android.os.Handler; @@ -63,10 +64,28 @@ protected void onCreate(Bundle savedInstanceState) setImage(R.drawable.web_hi_res_512). addWebsite("https://github.com/zoff99/ToxAndroidRefImpl/blob/zoff99/dev003/README.md"); + String abis = "??"; + try + { + abis = Build.SUPPORTED_ABIS[0]; + } + catch(Exception e) + { + try + { + abis = Build.CPU_ABI; + } + catch(Exception e2) + { + } + } + aboutPage.setDescription(getString(R.string.Aboutpage_5a) + "\n" + getString(R.string.Aboutpage_5b) + " " + - MainActivity.versionName + "\n\n" + "TRIfA commit hash:" + BuildConfig.GitHash + - "\n" + "JNI commit hash:" + MainActivity.getNativeLibGITHASH() + "\n" + - "c-toxcore commit hash:" + MainActivity.getNativeLibTOXGITHASH()); + MainActivity.versionName + "\n\n" + "TRIfA commit hash: " + BuildConfig.GitHash + + "\n" + "JNI commit hash: " + MainActivity.getNativeLibGITHASH() + "\n" + + "c-toxcore commit hash: " + MainActivity.getNativeLibTOXGITHASH() + "\n" + + "Android API Level: " + Build.VERSION.SDK_INT + "\n" + + "CPU ABI: " + abis); Element tox_link = new Element(); tox_link.setTitle(getString(R.string.Aboutpage_6));