Skip to content

Instantly share code, notes, and snippets.

@VenomVendor
Created April 18, 2013 20:20
Show Gist options
  • Save VenomVendor/5415900 to your computer and use it in GitHub Desktop.
Save VenomVendor/5415900 to your computer and use it in GitHub Desktop.
Get Device Details in Android Programmatically.
String details = "VERSION.RELEASE : "+Build.VERSION.RELEASE
+"\nVERSION.INCREMENTAL : "+Build.VERSION.INCREMENTAL
+"\nVERSION.SDK.NUMBER : "+Build.VERSION.SDK_INT
+"\nBOARD : "+Build.BOARD
+"\nBOOTLOADER : "+Build.BOOTLOADER
+"\nBRAND : "+Build.BRAND
+"\nCPU_ABI : "+Build.CPU_ABI
+"\nCPU_ABI2 : "+Build.CPU_ABI2
+"\nDISPLAY : "+Build.DISPLAY
+"\nFINGERPRINT : "+Build.FINGERPRINT
+"\nHARDWARE : "+Build.HARDWARE
+"\nHOST : "+Build.HOST
+"\nID : "+Build.ID
+"\nMANUFACTURER : "+Build.MANUFACTURER
+"\nMODEL : "+Build.MODEL
+"\nPRODUCT : "+Build.PRODUCT
+"\nSERIAL : "+Build.SERIAL
+"\nTAGS : "+Build.TAGS
+"\nTIME : "+Build.TIME
+"\nTYPE : "+Build.TYPE
+"\nUNKNOWN : "+Build.UNKNOWN
+"\nUSER : "+Build.USER;
Log.d("Device Details",details);
@ajaykeshri03
Copy link

nice and it useful to get all devices details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment