获取android系统信息
16lz
2022-06-17
eg.
System.out.println("os.name "+System.getProperty("os.name"));System.out.println("os.version "+System.getProperty("os.version"));
SDK帮助文档
java.lang.System
public staticStringgetProperty(Stringprop)
Returns the value of a particular system property ornull
if no such property exists.
The properties currently provided by the virtual machine are:
java.vendor.url java.class.path user.home java.class.version os.version java.vendor user.dir user.timezone path.separator os.name os.arch line.separator file.separator user.name java.version java.home
Parameters
the name of the system property to look up. |
Returns
- the value of the specified system property or
null
if the property doesn't exist.
Throws
SecurityExceptionif aSecurityManager is installed and itscheckPropertyAccess() method does not allow the operation. |
更多相关文章
- 代码中设置drawableleft
- android 3.0 隐藏 系统标题栏
- Android开发中activity切换动画的实现
- Android(安卓)学习 笔记_05. 文件下载
- Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
- 技术博客汇总
- android 2.3 wifi (一)
- AndRoid Notification的清空和修改
- Android中的Chronometer