MicroEmulator

          Posted on 2007-04-02 02:30 笨蛋啊帆 閱讀(464) 評論(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 © 笨蛋啊帆

          主站蜘蛛池模板: 原平市| 建宁县| 义乌市| 常山县| 龙胜| 琼海市| 长春市| 宁国市| 水城县| 图木舒克市| 望都县| 延吉市| 四平市| 葫芦岛市| 缙云县| 县级市| 南漳县| 蕲春县| 宁乡县| 文化| 许昌市| 武乡县| 凌云县| 鄂尔多斯市| 阿尔山市| 香河县| 宜川县| 敦化市| 双流县| 大兴区| 广德县| 房山区| 沈阳市| 怀仁县| 宜章县| 平邑县| 沂水县| 湘潭县| 沂源县| 滨海县| 南召县|