Device Check (Samsung vs Others)

前端 未结 2 2012
暗喜
暗喜 2021-01-01 17:09

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

2条回答
  •  一生所求
    2021-01-01 17:46

    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.

提交回复
热议问题