Methods Summary |
---|
public void | activate()Activate myself.
if (lastForegroundMidlet != null) {
proxyList.setForegroundMIDlet(lastForegroundMidlet);
lastForegroundMidlet = null;
}
|
public void | deactivate()Deactivate myself.
if (lastForegroundMidlet == null) {
if (proxyList == null) {
proxyList = MIDletProxyList.getMIDletProxyList();
}
lastForegroundMidlet = proxyList.getForegroundMIDlet();
}
proxyList.setForegroundMIDlet(null);
|
public boolean | processMessage(java.lang.String s, java.lang.String messageId)Process incoming message for this app model
if (!s.startsWith("MIDLET_")) {
return false;
}
s = s.substring(7);
if (verbose) {
System.err.println("MIDLET MESSAGE=\""+s+"\"");
}
if (s.startsWith("ACTIVATE")) {
activate();
} else if (s.startsWith("DEACTIVATE")) {
deactivate();
} else {
return false;
}
return true;
|
public void | register()Register this app model manager with the system.
PMidletManager pmm = new PMidletManager();
try {
Listener.setAppModelManager(pmm);
} catch (Throwable e) {
// The Listener is not created. Do nothing.
}
|