80 likes | 90 Views
Explore the process of creating Midlets for mobile applications using Java. Learn about key concepts, essential classes, and deployment procedures. Discover the functionalities of MIDlet states and JAD file configurations.
E N D
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 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) {} }
MIDlet state transitions Paused pauseApp() startApp() Active destroyApp() destroyApp() Destroyed
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
Notes • doCommandAction(...)
Useful Classes • Image • ImageItem • Form (eg. AccountPageScreen)