Skip to content

Instantly share code, notes, and snippets.

@matthewmorrone
Created November 12, 2019 17:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthewmorrone/36a693e48f239e3fdd9d9e9cdf24d784 to your computer and use it in GitHub Desktop.
Save matthewmorrone/36a693e48f239e3fdd9d9e9cdf24d784 to your computer and use it in GitHub Desktop.
Show Android device name, model, version code, version name
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