騎豬闖天下

          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)  編輯  收藏


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


          網站導航:
           
          主站蜘蛛池模板: 商都县| 林甸县| 察雅县| 昌乐县| 牟定县| 锡林郭勒盟| 临高县| 晋宁县| 富蕴县| 平昌县| 连州市| 吉水县| 平山县| 施秉县| 嘉善县| 江城| 夏邑县| 宜兴市| 观塘区| 休宁县| 甘泉县| 甘南县| 小金县| 肃宁县| 瑞金市| 丽江市| 富蕴县| 塘沽区| 全椒县| 浠水县| 新乡市| 成都市| 甘洛县| 米脂县| 高陵县| 应城市| 克什克腾旗| 龙南县| 手游| 洛隆县| 上栗县|