问题
I need to check that android device's manufacturer is dell or not. But I haven't dell device, so cant get actually name of manufacture of device(for dell).
I'm using android.os.Build.MANUFACTURER;
Does anyone know that what is the value returned for the above query in case of a dell device?
回答1:
Here is the wikipedia link about Android devices and MANUFACTURER strings.
EDIT: That Wikipedia page has been deleted. Here is a PDF list from Google Play which lists all supported devices and their manufacturers.
回答2:
Try this:
String deviceName = android.os.Build.MODEL;
来源:https://stackoverflow.com/questions/5049648/get-manufacturer-name-in-android-device