Created
November 12, 2019 17:24
-
-
Save matthewmorrone/36a693e48f239e3fdd9d9e9cdf24d784 to your computer and use it in GitHub Desktop.
Show Android device name, model, version code, version name
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String device = Build.BRAND + " " + android.os.Build.MODEL; | |
String osInt = "Android " + android.os.Build.VERSION.SDK_INT; | |
String osRelease = "Android " + Build.VERSION.RELEASE; | |
Log.e("TAG", "Device: " + device + " " + osInt + " - " + osRelease); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment