Hi !
I am trying to develop a Screen Capture Application . A menu item click sends my application in the background.The OfferKeyEventL() is as follows :
However since I need to use the application on a real phone using the Left and Right arrow keys in my app is not practical because as long as the app runs like a daemon in the background no other app can receive those key events.Code:TKeyResponse CAppInBackgroundContainer::OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType) { switch ( aKeyEvent.iCode ) { case EKeyLeftArrow : //Capture the screen CaptureScreen(); break; case EKeyRightArrow : //Bring the background application to foreground BringToForeground(); break; } return EKeyWasConsumed; }
Hence I am planning to use the following key combination : The Edit Key (the one that looks like a pen) + Number 1 key to call the CaptureScreen Function and the Edit Key + Number 2 to bring the application to the foreground. How can I acheive this functionality ?
Thanks . :-)



