In what ways can I call for an android app to detect what phone I'm using (like specific model number) in Java?
Asked
Active
Viewed 144 times
2
-
http://stackoverflow.com/questions/6579968/how-can-i-get-the-device-name-in-android – Rigotti Feb 07 '13 at 00:48
1 Answers
2
This should work, if you want to display "the end-user-visible name for the end product"(the docs) :
String mDeviceModel = android.os.Build.MODEL;
For the industrial name:
String mDeviceName = android.os.Build.DEVICE;
To get the Manufacturer:
String mDeviceManufacturer = android.os.Build.MANUFACTURER;

Ahmad
- 69,608
- 17
- 111
- 137