×

Discussion Board

Results 1 to 15 of 15
  1. #1
    Registered User
    Join Date
    Dec 2009
    Posts
    43

    close app via task list

    I would like to know how I should modify my code so that it can be closed via the task list.

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: close app via task list

    Quote Originally Posted by david.morgan View Post
    I would like to know how I should modify my code so that it can be closed via the task list.
    you mean can be or can't be closed. by default if you handle Exit event properly in your applications then you application will respond to tasklist exit events.

  3. #3
    Registered User
    Join Date
    Dec 2009
    Posts
    43

    Re: close app via task list

    my app doesn't close via the task list and i think my Exit event is handled properly

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: close app via task list

    Quote Originally Posted by david.morgan View Post
    my app doesn't close via the task list and i think my Exit event is handled properly
    Which exit commands are you using for exiting the application ?

  5. #5
    Registered User
    Join Date
    Dec 2009
    Posts
    43

    Re: close app via task list

    I just use Exit();

  6. #6
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: close app via task list

    ok, I see that you propably are not handling it correctly then, since you are not undersatnding the question. So make sure you are handling the both of the following cases, and that they both call the exit:

    Code:
    case EAknSoftkeyExit:
    case EEikCmdExit:

  7. #7
    Registered User
    Join Date
    Dec 2009
    Posts
    43

    Re: close app via task list

    Here is my code

    void CmyAppUi::HandleCommandL(TInt aCommand)
    {
    switch (aCommand)
    {
    case EEikCmdExit:
    case EAknSoftkeyExit:
    {
    Exit();
    }
    break;

  8. #8
    Regular Contributor
    Join Date
    Aug 2005
    Location
    India
    Posts
    399

    Re: close app via task list

    Then it should exit normally.
    Last edited by aficianado_001; 2009-12-21 at 09:12. Reason: Posted late

  9. #9
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: close app via task list

    Quote Originally Posted by david.morgan View Post
    Here is my code

    void CmyAppUi::HandleCommandL(TInt aCommand)
    {
    switch (aCommand)
    {
    case EEikCmdExit:
    case EAknSoftkeyExit:
    {
    Exit();
    }
    break;
    That should work indeed, so how are you trying to exit the app with task list and what actually happens ?

  10. #10
    Registered User
    Join Date
    Dec 2009
    Posts
    43

    Re: close app via task list

    nothing happens, i don't get the dialog that ask if you want to exit yes/no. the application stays open

  11. #11
    Regular Contributor
    Join Date
    Aug 2005
    Location
    India
    Posts
    399

    Re: close app via task list

    How are you exiting from Task list?

    Better thing is you try with HelloWorldBasic and exit that from Task List. It will Exit for sure and you can check why your app is not exiting.

  12. #12
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: close app via task list

    Quote Originally Posted by david.morgan View Post
    nothing happens, i don't get the dialog that ask if you want to exit yes/no. the application stays open
    Can you describe the exact steps on how you are trying to get your application to exit ?

  13. #13
    Registered User
    Join Date
    Dec 2009
    Posts
    43

    Re: close app via task list

    i hold the menu button until the task list appear and i then press the c button to close the app. it works well with other applications on the phone

  14. #14
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: close app via task list

    Quote Originally Posted by david.morgan View Post
    i hold the menu button until the task list appear and i then press the c button to close the app. it works well with other applications on the phone
    can you post your AppUi::HandleCommandL

    Got it above .. looks like you are blocking it some where . can you try logging and find out the control flow.

  15. #15
    Regular Contributor
    Join Date
    Aug 2005
    Location
    India
    Posts
    399

    Re: close app via task list

    Just see and find code of any application that exits well from TaskList like HelloWorldbasic

Similar Threads

  1. Showing an exe on task list. Is it posible?
    By joxepo in forum Symbian
    Replies: 6
    Last Post: 2009-02-23, 08:08
  2. Hide app icon from task list
    By heuven in forum Symbian User Interface
    Replies: 2
    Last Post: 2008-10-04, 23:14
  3. Replies: 0
    Last Post: 2006-06-04, 14:23
  4. 6680 and bluetooth service profiles
    By ceruault in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2005-10-08, 22:24
  5. 7710: System task list
    By silverparasol in forum Symbian
    Replies: 0
    Last Post: 2005-07-13, 18:20

Posting Permissions

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