You are on page 1of 4

J.E.D.I.

Appendix B: Machine Problems


Machine Problem 1: UDP Chat Program
Create a chat MIDlet. The MIDlet should be able to act as either a server or a client. At
midlet start, it will ask for the hostname or IP address of the chat peer. If a blank hostname
is supplied, it should act as a server and wait for connections at port 8888.
When supplied with a non-zero length hostname, it should connect to that host on the port
8888. The MIDlet should be able to send and receive text messages from its chat peer,
regardless if it is started as a server or a client.
Received and sent messages are displayed on the screen. A text input field should be
supplied for sending messages. Once the message is sent, the text input field should be
cleared.

Mobile Application Development

J.E.D.I.

Mobile Application Development

J.E.D.I.

Machine Problem 2: Task List


Create a Task List server (Web/XML) and client (Mobile).
The Web Application maintains a database of tasks with these properties:
long id unique task identifier
String name name of the task
int duration estimated duration of the task
String assignedTo the name of the person responsible for this task
String description additional description of the task
String status "1" if task is finished/completed, "0" if task not yet done
The Web Application will accept a single parameter "assignedTo", and return an XML
document containing the list of tasks for that person.
The Mobile application should have a text field for the name of the person and a
ChoiceGroup containing the list of tasks. It should also have a Command "Fetch". If the
user chooses the fetch command, the application will fetch the XML document, parse it,
and display the contents on the mobile device. Mark the choice item "checked" if that tasks
status is "1" (completed).

Mobile Application Development

J.E.D.I.

Mobile Application Development

You might also like