1 / 8

CSE 413: Making Midlets

CSE 413: Making Midlets. Shane Cantrell Zach Crisman. Ant. ant –buildfile build403.xml clean ant –buildfile build403.xml build ant –buildfile build403.xml run. file. target. build403.xml. Requires antenna <property name="wtk.home" value="c:/wtk104"/>. MIDlet skeleton.

leannp
Download Presentation

CSE 413: Making Midlets

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CSE 413: Making Midlets Shane Cantrell Zach Crisman

  2. Ant • ant –buildfile build403.xml clean • ant –buildfile build403.xml build • ant –buildfile build403.xml run file target

  3. build403.xml • Requires antenna • <property name="wtk.home" value="c:/wtk104"/>

  4. MIDlet skeleton import javax.microedition.midlet.*; public class MyMIDlet extends MIDlet { public MyMIDlet() {} // constructor public void startApp() {} // entering active state public void pauseApp() {} // entering paused state // entering destroyed state public void destroyApp(boolean unconditional) {} }

  5. MIDlet state transitions Paused pauseApp() startApp() Active destroyApp() destroyApp() Destroyed

  6. MIDlet jad file MIDlet-Name: Introductory Midlets MIDlet-1: Properties,,PView MIDlet-2: Accounts,,AccountViewer MIDlet-Vendor: Univ of Washington MIDlet-Version: 1.13 MIDlet-Jar-Size: 23919 MIDlet-Jar-URL: HW1.jar Image-1-name: Ant Image-1-location: /res/ant.gif

  7. Notes • doCommandAction(...)

  8. Useful Classes • Image • ImageItem • Form (eg. AccountPageScreen)

More Related