Java Reference
In-Depth Information
protected void destroyApp(boolean param) {
try {
endNow = true;
c.close();
} catch (IOException ex) {}
}
protected void pauseApp() {
try {
endNow = true;
c.close();
} catch (IOException ex) {}
}
protected void startApp() {
if (form == null) {
form = new Form("SMSMIDlet");
numberEntry = new TextField("Connect to:",
null, 256,
TextField.PHONENUMBER);
msgEntry = new TextField("Message:",
null, 160,
TextField.ANY);
form.append(numberEntry);
form.append(msgEntry);
form.addCommand(exitCommand);
form.addCommand(sendCommand);
form.setCommandListener(this);
}
Display.getDisplay(this).setCurrent(form);
startReceive();
}
private void startReceive() {
Thread t;
t = new Thread(this);
t.start();
}
 
Search WWH ::




Custom Search