騎豬闖天下

          J2ME隨筆,記錄成長的腳步

          統計

          留言簿(3)

          閱讀排行榜

          評論排行榜

          [J2ME-原創] MIDlet屬性

          1. J2ME在開發時,有時需要讀取手機的屬性,經常用經常忘,現總結下:



              
          //手機平臺型號
              String platform = System.getProperty("microedition.platform");
              
          //SMS服務中心號碼
              String _smscno = System.getProperty("wireless.messaging.sms.smsc");
              
              
          //CLDC版本屬性
              String cldc = System.getProperty("microedition.configuration");
              
          //MIPD版本屬性
              String midp = System.getProperty("microedition.profiles");
              
              
          //關于軟件相關信息
              String midletVendor =System.getProperty("MIDlet-Vendor");
              String description 
          =System.getProperty("MIDlet-Description");
              String version 
          = System.getProperty("MIDlet-Version");    
              String dataSize 
          = System.getProperty("MIDlet-Data-Size");    
              String midletName 
          = System.getProperty("MIDlet-Name");
              String midletJarSize 
          =System.getProperty("MIDlet-Jar-Size");
              String midletJarURL 
          =System.getProperty("MIDlet-Jar-URL");
              
              
              
          //系統編碼
              String encoding = System.getProperty("microedition.encoding");
              
          //區域設置
              String locale = System.getProperty("microedition.locale");
              
          //判斷是否支持MMAPI
              String mmapi = System.getProperty("microedition.media.version");
              
          //判斷是否支持藍牙
              String bluetooth = System.getProperty("bluetooth.api.version");
              
          //判斷是否支持個人信息管理
              String pim = System.getProperty("microedition.pim.version");
              
          //判斷是否支持文件系統
              String file = System.getProperty("microedition.io.file.FileConnection. version");
              
          //判斷是否支持SIP
              String sip = System.getProperty("microedition.sip.version");
              
          //判斷是否支持M3G
              String m3g = System.getProperty("microedition.m3g.version");


          2. MIDlet屬性如下

          && MIDlet屬性讀取" alt="MIDlet套件 && MIDlet屬性讀取" src="http://static12.photo.sina.com.cn/middle/4b3c1f95t7cf30782feeb&690" real_src="http://static12.photo.sina.com.cn/middle/4b3c1f95t7cf30782feeb&690">


          <End>
          騎豬闖天下


          posted on 2010-04-15 16:48 騎豬闖天下 閱讀(420) 評論(0)  編輯  收藏


          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 和林格尔县| 那曲县| 玉山县| 茌平县| 九江县| 安乡县| 精河县| 长白| 堆龙德庆县| 碌曲县| 大姚县| 晴隆县| 德兴市| 板桥市| 丰宁| 黄冈市| 饶河县| 竹北市| 溆浦县| 玉门市| 丹棱县| 民和| 龙游县| 左贡县| 大连市| 兴山县| 水城县| 隆林| 安国市| 伊春市| 常熟市| 沂水县| 怀集县| 麦盖提县| 安新县| 清河县| 葵青区| 玛多县| 凤翔县| 建始县| 乌兰察布市|