I'm working on a Series 60 app which has been stable and working correctly for some time but now requires modification; I have to change the way one of its dialogs is handled. Currently I'm instantiating a CAknSelectionListDialog object in a method of a CAknViewAppUi-derived class to display some options. While the dialog is being displayed and if a phone call is received, or the red key is pressed, my app puts itself correctly in the background. Later when the application is, say, selected from the running apps list, it comes to the foreground still displaying the dialog. I now need it to close the dialog when put into the background.
I can trap the red keypress in my implementation of HandleWsEventL() but can't get the dialog to terminate itself. Can anyone suggest a solution?
Thanks in advance,