Get the phone SDK version

2 votes · 1 comment

Get the Android SDK version running on the phone.

raw ·
· download
StringBuffer buf = new StringBuffer(); buf.append("VERSION.RELEASE {"+Build.VERSION.RELEASE+"}"); buf.append("\\nVERSION.INCREMENTAL {"+Build.VERSION.INCREMENTAL +"}"); buf.append("\\nVERSION.SDK {"+Build.VERSION.SDK+"}"); buf.append("\\nBOARD {"+Build.BOARD+"}"); buf.append("\\nBRAND {"+Build.BRAND+"}"); buf.append("\\nDEVICE {"+Build.DEVICE+"}"); buf.append("\\nFINGERPRINT {"+Build.FINGERPRINT+"}"); buf.append("\\nHOST {"+Build.HOST+"}"); buf.append("\\nID {"+Build.ID+"}"); Log.d("build",buf);
Add a comment

1 Comment

Since this code snippet makes use of "Build" class, let me add its link here:

Reply · March 26, 2011, 2:26 a.m.