Skip to main content

Exit cmd

1 reply [Last post]
irisbr
Offline
Joined: 2006-11-30

Hi,

I have implemented the exit cmd in the following way:
public void commandAction(Command command, Displayable displayable)
{
if(command == exitCommand)
{

try
{

destroyApp(false);
notifyDestroyed();

}
catch(MIDletStateChangeException midletstatechangeexception) {
midletstatechangeexception.printStackTrace();
}

}

While:
public void destroyApp(boolean flag)
throws MIDletStateChangeException
{
System.gc();
exporter.close();

}

When I am pressing on the EXIT button the GUI locked and stayed on the screen, it is not possible to close it.
I would like to mention that the same code runs ok in WTK22.
I have also tried to change the order of the methods: destroyApp(false) , notifyDestroyed(), but it didn

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
irisbr
Offline
Joined: 2006-11-30

Apology, it works fine!