Discussion Board

Results 1 to 3 of 3
  1. #1
    Super Contributor Nokia_Archive's Avatar
    Join Date
    Mar 2003
    Posts
    2,426
    I have an application which should not continue to run in its active state when the case is closed as the user will lose their place (information will be displayed which was not seen) and the battery will be run down unnecessarily. So I need to tell when then the case has been closed so I can do an automatic "pause." How do I do this?

    Posted by Thomas Crosley, tcrosley@softology.com
    on January 08, 2002 at 09:08

  2. #2
    Super Contributor Nokia_Archive's Avatar
    Join Date
    Mar 2003
    Posts
    2,426
    Posted by Forum_Nokia Developer_Support, communicator.developer@nokia.com
    on January 09, 2002 at 12:54



    Override CEikAppUi::HandleWsEventL like this:

    void CMyAppUi::HandleWsEventL(const TWsEvent& aEvent, CCoeControl* aDestination)
    {
    TInt type=aEvent.Type();
    switch (type)
    {
    case EEventCaseOpened:
    // case opened code
    break;
    case EEventCaseClosed:
    // case closed code
    break;
    }
    // we need to let Eikon see the events too
    CEikAppUi::HandleWsEventL(aEvent, aDestination);
    }

    Regards,
    FN Developer Support

  3. #3
    Registered User A_Sawicki's Avatar
    Join Date
    Mar 2003
    Posts
    6
    Hi are you sure that youre using CAknAppUi not the CEikAppUi while deriving? I used EikAppUi on 7650 and had similiar problem (not the case but menu pressing)

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