Problem in exiting the midlet

Hi all,

I am working on a mobile application that has four midlets. From within any of them when I call the exit, I need to go back to the screen showing the four midlets. But when I exit, the entire application closes and goes back to the home screen of the mobile.

I am using

public void exitMIDlet() {

getDisplay().setCurrent(null);

destroyApp(true);

notifyDestroyed();

}

to exit the midlet. I tried with destroyApp(false) also but still the problem remains...

Any help please...

[548 byte] By [bindiamariama] at [2007-11-27 5:06:22]
# 1
what are you doing when you change from one MIDlet to another one?if the previous MIDlet is in a pause state, your 'problem' is not a problem :)Message was edited by: supareno
suparenoa at 2007-7-12 10:25:03 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2
All the four midlets have different functionalities . when i exit one midlet i need to stop that particular application and then go to the main page and i need to start a midlet that does not depend on the previous one. While exiting i am calling the destroyApp not the pauseApp.
bindiamariama at 2007-7-12 10:25:03 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 3
so what do you mean by home screen of the mobile?
suparenoa at 2007-7-12 10:25:03 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 4
On exit, the application ends and shows the number of bytes transferred. By home screen i meant the normal screen of the mobile....just showing the menu button.
bindiamariama at 2007-7-12 10:25:03 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 5
use pauseApp() in the general MIDlet instead of destroyApp(...)because you are not exiting the MIDlet, you should pausing pausing itMessage was edited by: supareno
suparenoa at 2007-7-12 10:25:03 > top of Java-index,Java Mobility Forums,Java ME Technologies...