How to detect a mobile device manufacturer and model programmatically in Android?

前端 未结 3 1036
说谎
说谎 2020-12-24 10:20

I want to find device specification of a mobile phone for examples, the device manufacturer, model no ( and may be types of sensors in the device, wifi chipset etc..). I wa

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-24 11:18

    I just wanna elaborate on how to use the built in Attribute for the future visitors. You can use this method in identifying a Kindle Device(s)

    public static boolean isKindle(){
            final String AMAZON = "Amazon";
            final String KINDLE_FIRE = "Kindle Fire";
    
            return (Build.MANUFACTURER.equals(AMAZON) && Build.MODEL.equals(KINDLE_FIRE) ) || Build.MODEL.startsWith("KF");
    } 
    

提交回复
热议问题