Device Check (Samsung vs Others)

拈花ヽ惹草 提交于 2019-11-30 00:57:58

问题


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)


回答1:


String manufacturer = android.os.Build.MANUFACTURER;

example:

Sony Ericsson

samsung

HTC




回答2:


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.



来源:https://stackoverflow.com/questions/11700824/device-check-samsung-vs-others

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!