public void ExitCommand() { // Cleanup and notify that the MIDlet has exited midlet.destroyApp(false); midlet.notifyDestroyed(); }