<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    Java Me Games

    Java, Me, and Games.

      BlogJava :: 首頁 :: 聯系 :: 聚合  :: 管理
      13 Posts :: 0 Stories :: 3 Comments :: 0 Trackbacks

    通常一個MIDlet程序有兩個運行時屬性,系統的和程序的(system and application)。這些屬性都只能讀取,不能修改。

    系統屬性

    系統的屬性一般是由設備定義的。在各個jsr標準中定義了一些系統屬性的鍵值(key)。附1的表格就列出了當前的一些已經定義的系統屬性名。

    讀取方法:System.getProperty() ,這是一個靜態方法

    程序屬性

    程序屬性是在程序的描述文件中和jar包的manifest文件中定義。附2中就就是一個典型的描述文件。假如同樣的屬性在描述文件中和manifest文件中都被定義了,沖突會這樣被處理:假如MIDlet是一個MIDP2.0的可信任的程序,系統會直接拒絕安裝程序。否則,程序描述文件中定義的值會覆蓋manifest中定義的屬性。(If the MIDlet is a trusted application based on MIDP 2.0, the system simply won't install the application. Otherwise, the value in the descriptor overrides the value in the manifest.)

    讀取方法:MIDlet.getAppProperty(),這是一個實例方法

    注意:1、這些屬性的名稱是區分大小寫的。2、假如獲取一個沒有定義過的名稱,會返回一個null值。3、不要定義太多的屬性,有些設備上的描述大小是有限制的。

    原文參看:http://developers.sun.com/techtopics/mobility/midp/ttips/appproperty/index.html

    附1:
    J2ME Defined System Properties

    JSR Property Name
    Default Value1
    30 microedition.platform null
    microedition.encoding ISO8859_1
    microedition.configuration CLDC-1.0
    microedition.profiles null
    37 microedition.locale null
    microedition.profiles MIDP-1.0
    75 microedition.io.file.FileConnection.version 1.0
    file.separator (impl-dep)
    microedition.pim.version 1.0
    118 microedition.locale null
    microedition.profiles MIDP-2.0
    microedition.commports (impl-dep)
    microedition.hostname (impl-dep)
    120 wireless.messaging.sms.smsc (impl-dep)
    139 microedition.platform (impl-dep)
    microedition.encoding ISO8859-1
    microedition.configuration CLDC-1.1
    microedition.profiles (impl-dep)
    177 microedition.smartcardslots (impl-dep)
    179 microedition.location.version 1.0
    180 microedition.sip.version 1.0
    184 microedition.m3g.version 1.0
    185 microedition.jtwi.version 1.0
    195 microedition.locale (impl-dep)
    microedition.profiles IMP-1.0
    205 wireless.messaging.sms.smsc (impl-dep)
    205 wireless.messaging.mms.mmsc (impl-dep)
    211 CHAPI-Version 1.0

    附2
    MIDlet-1: HttpWrapperMidlet,,httpwrapper.HttpWrapperMIDlet
    MIDlet-Jar-Size: 16315
    MIDlet-Jar-URL: HttpWrapper.jar
    MIDlet-Name: HttpWrapper
    MIDlet-Vendor: Vendor
    MIDlet-Version: 1.0
    MicroEdition-Configuration: CLDC-1.0
    MicroEdition-Profile: MIDP-1.0
    Which-Locale: en

    posted on 2007-01-06 03:27 Nile Black 閱讀(417) 評論(0)  編輯  收藏 所屬分類: Java
    主站蜘蛛池模板: 亚洲国产午夜福利在线播放| 2020久久精品国产免费| 免费视频淫片aa毛片| 亚洲伊人久久大香线蕉结合| 免费影院未满十八勿进网站| 亚洲av无码电影网| 丁香花在线观看免费观看| 亚洲日韩国产AV无码无码精品| 女性无套免费网站在线看| 亚洲男同gay片| 亚洲第一网站男人都懂| 成人片黄网站色大片免费观看cn | 亚洲永久网址在线观看| 久久久久久99av无码免费网站| 亚洲综合精品成人| 国产大片免费观看中文字幕| 人成电影网在线观看免费| 国产精品亚洲一区二区三区在线| 免费A级毛片无码专区| 亚洲综合色7777情网站777| 免费无码又爽又高潮视频| 免费国产在线精品一区| 日韩精品亚洲aⅴ在线影院| 亚洲免费在线播放| 亚洲中文字幕久久精品无码VA| 性感美女视频免费网站午夜| 青草青草视频2免费观看| 亚洲成AV人片在线播放无码| 18勿入网站免费永久| 国产成人人综合亚洲欧美丁香花| 中文字幕亚洲日本岛国片| 99免费在线观看视频| 亚洲av色香蕉一区二区三区蜜桃| 亚洲精品无码久久不卡| 1a级毛片免费观看| 色www免费视频| 亚洲国产精品综合久久网各| 四虎永久在线精品视频免费观看| 久久久久久影院久久久久免费精品国产小说 | 亚洲精品制服丝袜四区| 一本无码人妻在中文字幕免费|