Android examples for Android OS:OS Build
get Phone Info, dump Build class
//package com.java2s; public class Main { public static String getPhoneInfo() { StringBuilder phoneInfoSB = new StringBuilder(); phoneInfoSB.append("Product: ").append(android.os.Build.PRODUCT); phoneInfoSB.append(", CPU_ABI: ").append(android.os.Build.CPU_ABI); phoneInfoSB.append(", TAGS: ").append(android.os.Build.TAGS); phoneInfoSB.append(", VERSION_CODES.BASE: ").append( android.os.Build.VERSION_CODES.BASE); phoneInfoSB.append(", MODEL: ").append(android.os.Build.MODEL); phoneInfoSB.append(", SDK: ").append( android.os.Build.VERSION.SDK_INT); phoneInfoSB.append(", VERSION.RELEASE: ").append( android.os.Build.VERSION.RELEASE); phoneInfoSB.append(", DEVICE: ").append(android.os.Build.DEVICE); phoneInfoSB.append(", DISPLAY: ").append(android.os.Build.DISPLAY); phoneInfoSB.append(", BRAND: ").append(android.os.Build.BRAND); phoneInfoSB.append(", BOARD: ").append(android.os.Build.BOARD); phoneInfoSB.append(", FINGERPRINT: ").append( android.os.Build.FINGERPRINT); phoneInfoSB.append(", ID: ").append(android.os.Build.ID); phoneInfoSB.append(", MANUFACTURER: ").append( android.os.Build.MANUFACTURER); phoneInfoSB.append(", USER: ").append(android.os.Build.USER); return phoneInfoSB.toString(); }/*w w w .j a v a 2 s . com*/ }