IT-Universitetet i København /Courses F2004 /Java on Mobile Devices

Lecture 2 - February 12





 

Home

Course Overview

People

Mini Project

Final Project

J2ME Repository

Examination

 

High Level User Interface - room 0.19


You may find the slides from the lecture here

  • 16:00 - 16:50: J2ME High Level GUI
  • 17:00 - 17:50: Memory Allocation
  • 18:00 - 18:30: Designing Applications for J2ME

Reading

Homework for February 19.

  1. Design and implement a midlet that asks for the following user info: name, password, telephone number and e-mail address. Try to validate the input given by the user, e.g. to prevent letters in a telephone number or digits in a name.
  2. Program a simple SMS sender that allows the user to create a SMS message in the display of the mobile device (hint: use a Textbox or Textfield object). Make a "Send" button that prints the message in the console area of the toolkit when the "Send" button is activated.
  3. Make a menu for a simple game with the following entries: start, high-score, save, and restore.
  4. Use the memory monitor to analyze at least one of the solutions to the three first exercises.
  5. Use the technique described in the chapter "Designing Applications for MIDP" on the following example (without creating the mock-up and final application"

    A J2ME application for a gift shop, e.g. a flower shop.
    Assume that you are going to develop a simple mobile interface for an on-line gift shop, e.g. selling flowers, chocolate, or wine. The user should be able to identify the receiver so the shop can send the gift, and to identify himself so the shop knows who to send the bill to. Furthermore, there should be a (short) list of the different gifts, e.g. 10 different boxes of chocolate from which the user can choose.
    You should design the user interface, i.e. sketch the layout of a number of displays that the user must go through to order a gift. It is important that you take the limited size of display and the wireless communication into account.
    The result of the exercise should be a series of drawings with sketches of the various displays and a small chart or diagram showing, how you intend the user to navigate between the different displays.

Links

An Introduction to the High-Level User Interface API: Alerts & Tickers

Here you may find information about the PNG format

Course organizor: Jørgen Staunstrup e-mail

You may send e-mail to all particpants by clicking here

 

Updated May 27, 2004
jst@itu.dk