j2me编程中有用的Systemt.getProperty属性~~~

类别:Java 点击:0 评论:0 推荐:


IMEI码为:System.getProperty("phone.imei")

System.getProperty("phone.mcc")

System.getProperty("phone.mcc
System.getProperty("phone.mnc
System.getProperty("phone.lai
System.getProperty("phone.cid

后面是些码在,查~~`

还可以这样用,System.getProperty("com.siemens.IMEI").

System.getProperty("microedition.configuration")

System.getProperty("microedition.profiles")

System.getProperty("microedition.platform")

System.getProperty("microedition.locale")

System.getProperty("microedition.encoding")

附j2SE里面的,http://java.sun.com/j2se/1.5.0/docs/api/java/lang/System.html#getProperties()
不晓得下面的能不能用,j2se里面是getProperties而j2me是单数的

System.getProperty("java.version")

System.getProperty("java.vendor")

System.getProperty("java.vm.name")

System.getProperty("java.vm.version")

System.getProperty("os.name")

System.getProperty("os.arch")

System.getProperty("os.version")

System.getProperty("user.name")

查看内存利用情况
long total=Runtime.getRuntime().totalMemory();
long free=Runtime.getRuntime().freeMemory();

参考网站:
1。http://www.pdasky.com.cn/info/568-1.htm.
2。http://www.phptr.com/articles/article.asp?p=102320

本文地址:http://com.8s8s.com/it/it11777.htm