I would like write a method which brings the application to the background but before will display confirm dialog query.
I don't know exactly where is the problem. When the application goes to the background I don't see any confirmation dialog. What should I do to solve this problem.
// I tried to put confirm dialog here
RWsSession& wsSession = CEikonEnv::Static()->WsSession();
TInt id = CEikonEnv::Static()->RootWin().Identifier();
if(wsSession.GetFocusWindowGroup() == id)
// and tried here