I know this issue has already been dealt with a lot of times but i still have some newbie questons.
Ok my problem is: I have to show up a dialog to the user, but i want it to be displayed when the
application is running in background, like it was an incoming call dialog. I got that i have to take
my application to the foreground before displaying the dialog but it doesnt work. The code is:
and it is called in CMyEngine like this:
// Construct en empty TApaTask object
// giving it a reference to the Window Server session
TApaTask task(iEikonEnv->WsSession( ));
// Initialise the object with the window group id of
// our application (so that it represent our app)
// Request window server to bring our application
// to foreground
But it still doesnt take the application (and above all the query dialog) to the foreground.
TBuf<25> msg(_L("Incoming Call\nAnswer?"));
CAknQueryDialog* dlg = CAknQueryDialog::NewL( );
TInt choice = dlg->ExecuteLD(R_MYAPP_CONFIRMATION_QUERY, msg);
if ( choice == EAknSoftkeyShow )
//Handle positive confirmation
//Handle negative confirmation
What's wrong with it?
Any help is appreciated
Thank in advance