获取手机的系统信息

有时需要获取到手机系统的信息,android已经有方法可以直接获取:

SystemProperties.get(key,defaultValue);

 通过这个方法可以直接获取到系统的信息。

在android 的源码Settings应用中就有使用:

SystemProperties.get(“ro.sys.usb.default.config”,"default,mass_storage,serial_smd,serial_tty.diag");

猜你喜欢

转载自dzy-123.iteye.com/blog/2220544