MicroEmulator

          Posted on 2007-04-02 02:30 笨蛋啊帆 閱讀(465) 評論(0)  編輯  收藏

          Application demonstration in web browser applet

          Your application should run without any changes inside applet.

              * Keep it in mind that if your j2me application requires HTTP access the applet must be signed. By default the applet will only communicate with the host the applet came from (your website).
              * Applet do not allow calls to System.getProperty();

          Embedding applet into html page

          MicroEmulator comes with three differend Skins:

              * Default 176x220 Full Screen and 176x176 Normal Canvas, Skin 226x471.
              * Minimum 128x128 Full Screen and 128x96 Normal Canvas, Skin 157x285. minimum.jar
              * Large 240x320 Full Screen and 240x266 Normal Canvas, Skin 292x618. large.jar

          Html fragment example for Default device:

          <applet code="org.microemu.applet.Main"
                          width=226 height=471 archive="me-applet.jar,(MIDlet application jar)">
                  <param name="midlet" value="(MIDlet application main class)">
          </applet>

              * To support Nokia UI nokiaui.jar should be included in the archive attribute.
              * To support Siemens API siemensapi.jar should be included in the archive attribute.

          There is additional parameter in the applet definition tag if you want to start the applet with device other than the default one:

            <param name="device" value="(device main class or device.xml)">

              * Minimum phone included in distribution is org/microemu/device/minimum/device.xml
              * Minimum phone with mouse and color is org/microemu/device/minimum/device-color.xml
              * Large phone is org/microemu/device/large/device.xml

          Remember to include the new device jar into the applet archive tag

              * minimum phone included in distribution is packaged inside minimum.jar
              * large phone included in distribution is packaged inside large.jar

          Example for SimpleDemo MIDlet, Nokia UI support and Minimum device:

          <applet code="org.microemu.applet.Main"
                          width=157 height=285 archive="me-applet.jar,nokiaui.jar,minimum.jar,simpledemo.jar">
                  <param name="midlet" value="org.microemu.midp.examples.simpledemo.SimpleDemo">
                  <param name="device" value="org/microemu/device/minimum/device.xml">
          </applet>

          Example for SimpleDemo MIDlet and Minimum device with mouse and color:

          <applet code="org.microemu.applet.Main"
                          width=157 height=285 archive="me-applet.jar,minimum.jar,simpledemo.jar">
                  <param name="midlet" value="org.microemu.midp.examples.simpledemo.SimpleDemo">
                  <param name="device" value="org/microemu/device/minimum/device-color.xml">
          </applet>

          Example for SimpleDemo MIDlet and Large Skin:

          <applet code="org.microemu.applet.Main"
                          width=292 height=618 archive="me-applet.jar,large.jar,simpledemo.jar">
                  <param name="midlet" value="org.microemu.midp.examples.simpledemo.SimpleDemo">
                  <param name="device" value="org/microemu/device/large/device.xml">
          </applet>


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


          網站導航:
           

          posts - 51, comments - 17, trackbacks - 0, articles - 0

          Copyright © 笨蛋啊帆

          主站蜘蛛池模板: 喀什市| 定兴县| 望奎县| 辽宁省| 柳州市| 抚松县| 丰镇市| 兖州市| 海门市| 孝昌县| 密云县| 宜章县| 留坝县| 南宫市| 韶山市| 正安县| 洛隆县| 娱乐| 迁西县| 中超| 瑞丽市| 荥阳市| 宜昌市| 丰都县| 蕲春县| 繁昌县| 偏关县| 海淀区| 湖南省| 五河县| 天水市| 万盛区| 陈巴尔虎旗| 南京市| 大方县| 两当县| 全椒县| 营山县| 丹寨县| 雷波县| 轮台县|