I would like to know if there is a way for reading the Phone Model programmatically in Android.
I would like to get a string like HTC Dream, Milestone, Sapphire or whatever...
I would like to know if there is a way for reading the Phone Model programmatically in Android.
I would like to get a string like HTC Dream, Milestone, Sapphire or whatever...
Here is my code , To get Manufacturer,Brand name,Os version and support API Level
Output:
Actually that is not 100% correct. That can give you Model (sometime numbers).
Will get you the Manufacturer of the phone (HTC portion of your request):
For a product name:
Yes: Build.MODEL.
You can get the phone device name from the
In case phone doesn't support Bluetooth, then you have to construct the device name from
Here is the sample code to get the phone device name.
On many popular devices the market name of the device is not available. For example, on the Samsung Galaxy S6 the value of
Build.MODEL
could be"SM-G920F"
,"SM-G920I"
, or"SM-G920W8"
.I created a small library that gets the market (consumer friendly) name of a device. It gets the correct name for over 10,000 devices and is constantly updated. If you wish to use my library click the link below:
AndroidDeviceNames Library on Github
If you do not want to use the library above, then this is the best solution for getting a consumer friendly device name:
Example from my Verizon HTC One M8:
Result:
you can use the following code for getting the brand name and brand model of the device.