×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    May 2006
    Location
    Lahore, Pakistan
    Posts
    56

    How to close the dialogs when app goes in background (S60 3rd edition)

    hi
    I am facing a problem that i want to close all opened dialogs when menu key is pressed (in other words when my app goes at background).

    Can any body guide my in this regard

    Muhammad Shahzad Amin

  2. #2
    Registered User
    Join Date
    Sep 2006
    Posts
    39

    Re: How to close the dialogs when app goes in background (S60 3rd edition)

    Implement function CEikAppUi::HandleForegroundEventL. You should handle the event EEventFocusLost.

  3. #3
    Registered User
    Join Date
    Mar 2003
    Location
    Germany
    Posts
    200

    Re: How to close the dialogs when app goes in background (S60 3rd edition)

    Quote Originally Posted by shahzadamin
    I am facing a problem that i want to close all opened dialogs when menu key is pressed (in other words when my app goes at background).
    Did you have a look at MAknIntermediateState - I think this is intended exactly for that purpose?

    I found it a bit cumbersome to use, because CAknQueryDialog and similar classes could not be subclassed safely without breaking Skins (at least in 2nd Edition), in order to add this behaviour, but a wrapper class around existing dialogs can also do the same thing, even if a bit less elegantly. This may no longer be an issue in 3rd Edition, though...

  4. #4
    Super Contributor
    Join Date
    May 2005
    Location
    Hyderabad,India
    Posts
    704

    Re: How to close the dialogs when app goes in background (S60 3rd edition)

    hi,

    in your HandleForegroundEventL() function, ur checking like this,

    if(!iForeground)
    {}

    in this condition, delete ur dialog.

    regards,
    eswar

Similar Threads

  1. S60 3rd Edition sdk emulator cannot be started up
    By ShirleyKing in forum Symbian Tools & SDKs
    Replies: 7
    Last Post: 2009-03-11, 22:30
  2. Background SMS Send s60 2nd Edition
    By symbee in forum Symbian Networking & Messaging (Closed)
    Replies: 6
    Last Post: 2008-09-12, 15:33
  3. Replies: 3
    Last Post: 2006-10-04, 22:44
  4. What is going on with Vibration on S60?
    By amd_rikus in forum Mobile Java General
    Replies: 3
    Last Post: 2006-06-16, 00:29
  5. S60 3rd Edition 'App. Closed lcdui' error
    By pompeybob44uk in forum Mobile Java General
    Replies: 6
    Last Post: 2006-05-22, 21: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
  •  
×