Get the Device Model Name — Android App
A quick tip: retrieve the model name of an Android device from android.os.Build.
Here’s a quick tip. You can use the code below to retrieve the model name of an Android device.
public String getDeviceBrandName()
{
if( android.os.Build.MODEL != null )
{
return java.net.URLEncoder.encode(android.os.Build.MODEL);
}
return "";
}
Note that Build.MODEL returns the model name (for example, “GT-I9505”). If you need the brand itself, use Build.BRAND or Build.MANUFACTURER instead (for example, “samsung”).