赞
踩
- public String getPhoneBrand() {
-
- String manufacturer = Build.MANUFACTURER;
- if (manufacturer != null && manufacturer.length() > 0) {
- return manufacturer.toLowerCase();
- } else {
- return "unknown";
- }
-
- }
-
- public String isHuaWei(){
- String phoneBrand = getPhoneBrand();
- return phoneBrand.contains("HUAWEI") || phoneBrand.contains("OCE")
- || phoneBrand.contains("huawei") || phoneBrand.contains("honor");
- }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。