×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    May 2003
    Posts
    28

    Exit not working in a midlet

    I have developed a midlet suite which has 6 midlets and i have ported the midlet to nokia 6800 phone. The application works fine. I have problem in the midlet. in each of the midlet i am using an exit command to exit out of the midlet to the main application which contains all the middlets. But the exit command does 'nt work. The code below for the action for exit command is given below




    if(label.equals("Exit")) {
    destroyApp(true);
    }


    the destroyApp function is given below
    public void destroyApp(boolean unconditional) {
    notifyDestroyed();
    }


    I did'nt face this probelm on emulator. It is working perfectly on all emulators

  2. #2
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    393
    Try this..

    Command exitCommand = new Command("Exit", Command.SCREEN, 2);

    public void commandAction(Command c, Displayable s) {
    if (c == exitCommand) {
    destroyApp(false);
    notifyDestroyed();
    }
    }


    public void destroyApp(boolean unconditional) {
    }

    [N]/Forum Nokia

  3. #3
    Registered User
    Join Date
    May 2003
    Posts
    28
    Hi mittal,

    I tried the way u specified, but still it is not working. Please help me to solve this problem

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×