Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Device Check (Samsung vs Others)

Tags:

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)

like image 246
Najeebullah Shah Avatar asked Jul 28 '12 11:07

Najeebullah Shah


People also ask

Can someone else track my Samsung phone?

SmartThings Find will scan for your devices and even show you a map with detailed information, including addresses and timestamps. You can also share device information with other Galaxy phone users so a friend can locate a device for you.

Should you turn on device protection Samsung?

We recommend turning on Device protection to protect your device from malware.

How check all Samsung phones?

Step 1: Open your phone's dialer and dial the secret code *#0*#, and the diagnostic mode will open automatically. Step 2: Now, a list of options will appear on the HwModule Test screen. The list contains all the features of your phone that you can test on your own, including sensors.


2 Answers

String manufacturer = android.os.Build.MANUFACTURER; 

example:

Sony Ericsson

samsung

HTC

like image 165
MAC Avatar answered Sep 30 '22 16:09

MAC


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.

like image 22
Chirag Avatar answered Sep 30 '22 15:09

Chirag