Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Aug 2010

    Question Doubt in destroyApp() method?

    I am new to j2me, i have one small doubt in destroyApp() method.

    this code i am calling from LoginScreen class


    and exitMIDlet(boolean) is written at MRPlusApp class.

    public void destroyApp(boolean unconditional) {

    public void exitMIDlet(boolean status){

    Now question is I am passing true or false, MIDlet ends.
    Also my question is how its working....?
    from my point of view it should get into infinite loop....because destroyApp() is calling inside same function....

    I knew my question is silly but please help me..


  2. #2
    Registered User
    Join Date
    Sep 2007

    Re: Doubt in destroyApp() method?

    Hi jayesh Welcome to Forum Nokia !!

    Please go through the below link

    Will this help?

  3. #3
    Super Contributor
    Join Date
    Jun 2003
    Cheshire, UK

    Re: Doubt in destroyApp() method?

    There is no loop because:

    1. There is no code in destroyApp(). There is not much point in calling it if you have no code in it.

    2. You call destoryApp() after notifyDestroyed(). notifyDestroyed() might not even return, since it advises the device that you don't want to execute anymore.


Similar Threads

  1. Doubt on the format and downloading method
    By harinrd in forum [Archived] Flash Lite on Nokia Devices
    Replies: 2
    Last Post: 2009-06-24, 19:54
  2. Draw Method ... Basic Doubt
    By Vignesh.M in forum Symbian User Interface
    Replies: 2
    Last Post: 2009-02-13, 12:31
  3. Difference between destroyApp(false) and destroyApp(true)
    By Basu in forum Mobile Java General
    Replies: 4
    Last Post: 2008-10-24, 16:09
  4. callling method destroyApp() across Java packages and classes
    By nicholso in forum Mobile Java General
    Replies: 4
    Last Post: 2007-08-30, 14:16
  5. problem not invoke destroyApp method in 3650 phone...
    By crony94 in forum Mobile Java General
    Replies: 3
    Last Post: 2003-06-12, 06:41

Posting Permissions

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