hi 2 all,
My app is running in background..and on some key presses i want to bring my app on foreground.for that i have used following code.......
in my appui constructL
Key2 = iEikonEnv->RootWin().CaptureKeyUpAndDowns(EStdKeyHash,0,0);
and in my HandleKeyEventL()
TBool keypress1 = (aType == EEventKeyDown && aKeyEvent.iScanCode == EStdKeyHash);
TBool keypress2 = (aType == EEventKeyDown && aKeyEvent.iScanCode == EStdKeyNkpAsterisk);
if(keypress1 && keypress2)
TApaTask task(iEikonEnv->WsSession( ));
this dosent gives any error to me......but when i installed my app on device and while my app is in background it dosent received any keyevents during that.
does it require any additional capability?.....or am i missing something in my code?.........
i have gone through much posts on forum but havent found any bug in my code.