如何获取华为手机上EMUI版本号?

版权声明:欢迎转载 有不明白的 写的不正确的地方 欢迎一起讨论 谢谢 https://blog.csdn.net/qq_27744987/article/details/54097239
Class<?> classType = Class.forName("android.os.SystemProperties");
Method getMethod = classType.getDeclaredMethod("get", new Class<?>[] {String.class});
String buildVersion = (String)getMethod.invoke(classType, new Object[] {"ro.build.version.emui"});
注意:需要最低SDK版本19

猜你喜欢

转载自blog.csdn.net/qq_27744987/article/details/54097239
今日推荐