Java Reference
In-Depth Information
} else if (c == sendCommand) {
String dest = numberEntry.getString();
if (dest.length() > 0)
sender.sendMsg(dest, appId, "A fractal!", FRACTAL_PATH);
}
}
protected void destroyApp(boolean param) {
try {
endNow = true;
c.close();
} catch (IOException ex) {}
}
protected void pauseApp() {
endNow = true;
try {
c.setMessageListener(null);
c.close();
} catch (IOException ex) {}
}
protected void startApp() {
if (form == null) {
form = new Form("MMSMIDlet");
numberEntry = new TextField("Connect to:",
null, 256,
TextField.PHONENUMBER);
imageItem = new ImageItem(null,null,
ImageItem.LAYOUT_DEFAULT,null);
form.append(numberEntry);
form.append(imageItem);
form.addCommand(exitCommand);
form.addCommand(sendCommand);
form.setCommandListener(this);
}
Display.getDisplay(this).setCurrent(form);
startReceive();
}
 
Search WWH ::




Custom Search