2

In what ways can I call for an android app to detect what phone I'm using (like specific model number) in Java?

goodmanship
  • 334
  • 1
  • 13

1 Answers1

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