blackberry 模拟器如何显示中文

修改安装环境下的(如:../BlackBerry_JDE_4.6.1/simulator)的device.xml

    例如8900机型为 8900.xml

 

打开会看到:

<SimulatorConfiguration version="1.0" hardwareid="0x84001503" flashSize="32768" platformVersion="1.8.0.0" vendorID="0">
   <ALXSources>.</ALXSources>
   <Application>net.rim.java.tasks</Application>
   <Application>net.rim.java.memopad</Application>
   <Application>net.rim.medialoader.preloaded.media</Application>
   <Application>net.rim.java.docViewer</Application>
   <Application>net.rim.java.passwordkeeper</Application>
   <Application>net.rim.blackberry.lang.en_GB</Application>
   <Application>net.rim.blackberry.spellcheck</Application>
   <Application>net.rim.platform.ecmascript</Application>
   <Application>com.dataviz.dxtg</Application>
   <Application>com.magmic.sudoku</Application>
   <Application>com.magmic.klondike</Application>
   <Application>com.magmic.thk2</Application>
   <Application>com.magmic.troopertyping</Application>
   <Application>net.rim.java.phone</Application>
   <Application>net.rim.java.browser</Application>
   <Application>net.rim.java.browser.javascript</Application>
   <ApplicationExclude>net.rim.BBXpEnabler</ApplicationExclude>
   <ApplicationExclude>net.rim.java.batterylog</ApplicationExclude>
   <ApplicationExclude>net.rim.java.quincy</ApplicationExclude>
   <ApplicationExclude>net.rim.java.linktrack</ApplicationExclude>
   <Application>net.rim.java.help</Application>
   <Application>net.rim.java.maps</Application>
   <Application>net.rim.java.blackberrymessenger</Application>
   <Application>net.rim.sdk.simulator</Application>
</SimulatorConfiguration>

     在模拟器启动时候会按照这个xml列表下的东西加载。中间有句加粗的就是为语言设置。所以只需要加入:

   <Application>net.rim.blackberry.lang.zh_CN_Pinyin</Application>
   <Application>net.rim.blackberry.lang.zh_CN.renderingSupport</Application>

就可以了。

最终结果如:

<SimulatorConfiguration version="1.0" hardwareid="0x84001503" flashSize="32768" platformVersion="1.8.0.0" vendorID="0">
   <ALXSources>.</ALXSources>
   <Application>net.rim.java.tasks</Application>
   <Application>net.rim.java.memopad</Application>
   <Application>net.rim.medialoader.preloaded.media</Application>
   <Application>net.rim.java.docViewer</Application>
   <Application>net.rim.java.passwordkeeper</Application>
   <Application>net.rim.blackberry.lang.en_GB</Application>
   <Application>net.rim.blackberry.lang.zh_CN_Pinyin</Application>
   <Application>net.rim.blackberry.lang.zh_CN.renderingSupport</Application>

   <Application>net.rim.blackberry.spellcheck</Application>
   <Application>net.rim.platform.ecmascript</Application>
   <Application>com.dataviz.dxtg</Application>
   <Application>com.magmic.sudoku</Application>
   <Application>com.magmic.klondike</Application>
   <Application>com.magmic.thk2</Application>
   <Application>com.magmic.troopertyping</Application>
   <Application>net.rim.java.phone</Application>
   <Application>net.rim.java.browser</Application>
   <Application>net.rim.java.browser.javascript</Application>
   <ApplicationExclude>net.rim.BBXpEnabler</ApplicationExclude>
   <ApplicationExclude>net.rim.java.batterylog</ApplicationExclude>
   <ApplicationExclude>net.rim.java.quincy</ApplicationExclude>
   <ApplicationExclude>net.rim.java.linktrack</ApplicationExclude>
   <Application>net.rim.java.help</Application>
   <Application>net.rim.java.maps</Application>
   <Application>net.rim.java.blackberrymessenger</Application>
   <Application>net.rim.sdk.simulator</Application>
</SimulatorConfiguration>
   最后你就可以在options/language (4.1版本以下)或者 options/Localisation(4.2以上版本)下面设置语言了。。

 

你可能感兴趣的:(xml,语言,BlackBerry)