Presentation on theme: "Developing Software for Wireless Devices"— Presentation transcript:
1 Developing Software for Wireless Devices Robert HatchSean MeredithJames Pate Williams, Jr.
2 Overview Sun Java SDK 1.3 Forte Sun Java Micro Edition Packages of MIDP
3 Desirable Software Components Sun Java Software Development KitSun Forte 3.0 Integrated Development EnvironmentSun Java 2 Micro Edition Wireless ToolkitAll are freely downloadable from Sun and require at least a 450 MHz Pentium II with 128 MB of RAM
4 Sun Java 2 SDK 1.3 Improvements more robust than previous Java SDKs sound API that includes a MIDI synthesizer and sequencersupport for the Java 2 Micro Edition Wireless Toolkit
5 Sun Forte 3.0 Integrated Development Environment for Java programming comparable to Borland’s JBuilder 5.0constructed using Javaa resource hog
6 Sun Java2 ME Wireless Toolkit Version can be used either in integrated mode with Forte 3.0 or as a stand alone product.The integrated version is easier for code development and testingThe Wireless Toolkit implements a Mobile Information Device Profile (MIDP) for some common wireless devices
7 Wireless Toolkit The toolkit includes the following emulators: default grey phoneminimum phoneMotorola i85sPalm OS deviceRIM Java handheld
8 Wireless ToolkitThe emulators can function fairly closely to read devices in terms of the GUIs that they offer.
9 Java Mobile Information Device Profile (MIDP) Consists of five packages:user interface packagepersistence packageapplication lifecycle packagenetworking packagecore packages
10 User Interface Package Listener interfacesChoiceAPICommandListenerItemStateListenerButtonsdefined as commandsactions can be captured by implementing the CommandListener interface, e.g. by defining the commandAction method
11 User Interface Package: Common GUI Elements AlertCanvasCommandChoiceGroupDateFieldDisplayFontFormGaugeGraphicsImageItemListScreenTicker
12 Persistence Package Components Associated class RecordComparator RecordEnumerationRecordFilterRecordListenerAssociated classRecordStore - a class representing a record store
13 Application Lifecycle Package Defines Mobile Information Device Profile applications and interactions between the application and the environment in which the application runsClass associatedMIDlet - MIDP application on the deviceStatesPausedActiveDestroyed
16 Networking Package Components Associated class OutputConnection StreamConnectionStreamConnectionNotifierAssociated classConnector - placeholder for the static methods that are used for creating all the Connection jobs.
17 Networking PackageSupport for stream connections (TCP/IP) and datagram connections (UDP/IP)TCP/IP - connection-oriented protocol; reliable and in-order delivery of packetsUDP/IP - connectionless-oriented protocol; unreliable and possibly out-of-order delivery of packets
18 Networking Package (Cont.) Some wireless devices such as Palm OS devices do not offer the datagram protocol and only use stream connectionsJava MIDP supports HTTP connectionsTCP/IP networking is fairly straightforward and only requires a few lines of code to implement
20 Wireless Device Software Development Steps Create a MIDlet suite template using Forte 3.0Fill in the MIDlet details to incorporate desired functionalityExecute code on various emulators; the same code behaves differently on distinct platformsPort code to desired deviceTest on an actual wireless device