美文网首页
Android机型判断

Android机型判断

作者: 弘法大师 | 来源:发表于2019-01-03 15:44 被阅读0次

    机型判断

        public static boolean isMIUI() {
            String manufacturer = Build.MANUFACTURER;
            if ("xiaomi".equalsIgnoreCase(manufacturer)) {
                return true;
            }
            return false;
        }
    
        public static boolean isEMUI() {
            String manufacturer = Build.MANUFACTURER;
            if ("HUAWEI".equalsIgnoreCase(manufacturer)) {
                return true;
            }
            return false;
        }
    
        public static boolean isOPPO() {
            String manufacturer = Build.MANUFACTURER;
            if ("OPPO".equalsIgnoreCase(manufacturer)) {
                return true;
            }
            return false;
        }
    
        public static boolean isVIVO() {
            String manufacturer = Build.MANUFACTURER;
            if ("vivo".equalsIgnoreCase(manufacturer)) {
                return true;
            }
            return false;
        }
    

    相关文章

      网友评论

          本文标题:Android机型判断

          本文链接:https://www.haomeiwen.com/subject/owofrqtx.html