How to get the device model name ? I have a Yuphoria 5010 which displays YU5010 in device Model Number, I want to fetch the full name of the device? I want the fetch the exact string given below:
Yuphoria 5010 6.0 Marshmallow
Step 1: Go to Settings. Step 2: Scroll down and tap About Phone or About Device. Step 3: You'll see the model number under the Model or Model Number subheading. As with Samsung, you may find your model number printed on the back of your phone in some cases.
2 The IMEI, Serial number and Model number are printed on the back of the device.
It was really simple, just call:
String model = Build.MODEL;
Update: This code will print the exact string you requested:
String reqString = Build.MANUFACTURER
+ " " + Build.MODEL + " " + Build.VERSION.RELEASE
+ " " + Build.VERSION_CODES.class.getFields()[android.os.Build.VERSION.SDK_INT].getName();
Prints:
Samsung Note 4 6.0 MARSHMALLOW
LGE LG-D410 4.4.2 KITKAT
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With