Skip to content

Commit

Permalink
show also android api level and cpu abi on the about page
Browse files Browse the repository at this point in the history
  • Loading branch information
zoff99 committed Jan 8, 2025
1 parent 4a5bb30 commit d05b090
Showing 1 changed file with 22 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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));
Expand Down

0 comments on commit d05b090

Please sign in to comment.