[Html] Sometimes you need to calculate the phone model and version number, and use the program to obtain the corresponding phone information. Compared with the two mobile phones, we found that different manufacturers have different display methods for a specific information, for details, see:
Sometimes you need to calculate the phone model and version number, and use the program to obtain the corresponding phone information. Comparing the two phone numbers, we found that different manufacturers have different display methods. For details, see:
[Html]
[Html] String phoneInfo = "Product:" + android. OS. Build. PRODUCT;
PhoneInfo + = ", CPU_ABI:" + android. OS. Build. CPU_ABI;
PhoneInfo + = ", TAGS:" + android. OS. Build. TAGS;
PhoneInfo + = ", VERSION_CODES.BASE:" + android. OS. Build. VERSION_CODES.BASE;
PhoneInfo + = ", MODEL:" + android. OS. Build. MODEL;
PhoneInfo + = ", SDK:" + android. OS. Build. VERSION. SDK;
PhoneInfo + = ", VERSION. RELEASE:" + android. OS. Build. VERSION. RELEASE;
PhoneInfo + = ", DEVICE:" + android. OS. Build. DEVICE;
PhoneInfo + = ", DISPLAY:" + android. OS. Build. DISPLAY;
PhoneInfo + = ", BRAND:" + android. OS. Build. BRAND;
PhoneInfo + = ", BOARD:" + android. OS. Build. BOARD;
PhoneInfo + = ", FINGERPRINT:" + android. OS. Build. FINGERPRINT;
PhoneInfo + = ", ID:" + android. OS. Build. ID;
PhoneInfo + = ", MANUFACTURER:" + android. OS. Build. MANUFACTURER;
PhoneInfo + = ", USER:" + android. OS. Build. USER;
// Toast. makeText (this, phoneInfo, Toast. LENGTH_LONG). show ();
TextView t = (TextView) findViewById (R. id. main_phoneinfo );
T. setText (phoneInfo );
From xiechengfa's column