Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User geran's Avatar
    Join Date
    Mar 2003
    Posts
    18
    Hi all,
    When you open some message from inbox in Messaging app, it invokes some other app that can handle this type of file,

    e.g. Notes for text files. Then if you press Back button, Notes app is closed and it goes back to inbox. I tried to do it but

    always when my app closes, it closes Messaging app, too. Does anybody know how to do it? I tried to :

    1) CAknAppUi::HandleCommandL(EAknSoftkeyBack);
    2) if (iDoorObserver)
    iDoorObserver->NotifyExit(MApaEmbeddedDocObserver::ENoChanges);
    3) if (ContainerAppUi())
    ContainerAppUi()->HandleCommandL(EAknSoftkeyBack);
    4) if (ContainerAppUi())
    ContainerAppUi()->HandleCommandL(EEikBidCancel);
    5) if (ContainerAppUi())
    {
    CEikButtonGroupContainer* cba = ((CAknAppUi*)ContainerAppUi())->Cba();
    TInt commandId = cba->ButtonGroup()->CommandId(0); //I tried also 1
    ContainerAppUi()->HandleCommandL(commandId);
    }
    6) CAknEnv::ExitForegroundAppL();
    and of course
    7) Exit();

    Please help me.

    G.

  2. #2
    Nokia Developer Moderator enstedt's Avatar
    Join Date
    Mar 2003
    Location
    Tampere, Finland
    Posts
    1,113
    Hi,

    Moved to the Symbian section.

    Best regards,
    V / Forum Nokia

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved