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
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
Implement function CEikAppUi::HandleForegroundEventL. You should handle the event EEventFocusLost.
Did you have a look at MAknIntermediateState - I think this is intended exactly for that purpose?Originally Posted by shahzadamin
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...
hi,
in your HandleForegroundEventL() function, ur checking like this,
if(!iForeground)
{}
in this condition, delete ur dialog.
regards,
eswar