Hi,
Can anyone tell how to generate an interrupt on closing the flap of Nokia N90.
The device does not generate it has anyone generated it manually..
is it possible....
Hi,
Can anyone tell how to generate an interrupt on closing the flap of Nokia N90.
The device does not generate it has anyone generated it manually..
is it possible....
hi,
that's possible in C++ (taken from TechLib):
have you tried if key events for Canvas/GameCanvas or isShown() are changed during flip change state in your java game or maybe pauseApp() is called somehow?It is possible to detect flip cover opening/closing events in CEikAppUi::HandleKeyEventL(). The corresponding events (TEventCode) are EEventScreenDeviceChanged, EEventCaseOpened, and EEventCaseClosed. When the camera is rotated, there will be key events of type EEventKeyUp and EEventKeyDown with TKeyEvent::iScanCode values ranging from 234 to 238 depending on its orientation.
I've searched java section for "flip" but nothing found,
regards,
Peter
hi,
try to add showNotify/hideNotify overriden implementation:
and stop/run your game code,Code:protected void hideNotify(){ System.out.println("HIDE NOTIFY"); } protected void showNotify(){ System.out.println("SHOW NOTIFY"); }
I don't have real device from s60 2rd edition FP3 (nor SDK) to test if it works though,
regards,
Peter