23

I am working on an application, where there is some code implementation difference for samsung and htc, kindly have a look at my SO question

Sending SMS to multiple recepients (Samsung vs HTC)

How can I put a check for if the device is samsung or others(htc)

Community
  • 1
  • 1
Najeebullah Shah
  • 4,164
  • 4
  • 35
  • 49
  • Check this: [Android.os.Build data examples](http://stackoverflow.com/questions/3103196/android-os-build-data-examples-please/8056925#8056925) – Paresh Mayani Jul 28 '12 at 12:12

2 Answers2

39
String manufacturer = android.os.Build.MANUFACTURER;

example:

Sony Ericsson

samsung

HTC

jturolla
  • 6,596
  • 7
  • 26
  • 41
MAC
  • 15,799
  • 8
  • 54
  • 95
12

Try this code.

String strManufacturer = android.os.Build.MANUFACTURER;

It will return name of Manufacturer. Ex Htc

String str = android.os.Build.MODEL;

It will returns name of device. Ex Htc Explorer , HTC Smith

Look at this link for further info.

Chirag
  • 56,621
  • 29
  • 151
  • 198