Discussion Board

Results 1 to 3 of 3

Thread: N90 Interrupt

  1. #1
    Registered User pradip013's Avatar
    Join Date
    May 2006
    Posts
    1
    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....

  2. #2
    Super Contributor peterblazejewicz's Avatar
    Join Date
    Dec 2005
    Location
    Europe/Poland/Warsaw
    Posts
    1,699
    hi,

    that's possible in C++ (taken from TechLib):
    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.
    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?

    I've searched java section for "flip" but nothing found,

    regards,
    Peter

  3. #3
    Super Contributor peterblazejewicz's Avatar
    Join Date
    Dec 2005
    Location
    Europe/Poland/Warsaw
    Posts
    1,699
    hi,


    try to add showNotify/hideNotify overriden implementation:
    Code:
    protected void hideNotify(){
                System.out.println("HIDE NOTIFY");
            }
            protected void showNotify(){
                System.out.println("SHOW NOTIFY");
            }
    and stop/run your game code,
    I don't have real device from s60 2rd edition FP3 (nor SDK) to test if it works though,

    regards,
    Peter

Similar Threads

  1. N90 and SVG support
    By edugnani in forum Mobile Java General
    Replies: 3
    Last Post: 2006-06-06, 04:59
  2. Replies: 0
    Last Post: 2006-03-30, 06:48
  3. Theme Studio 3 and n90 / n70 Problems
    By Ezz666 in forum Streaming and Video
    Replies: 0
    Last Post: 2006-02-04, 13:18
  4. N90 screen resolution
    By thongtom in forum General Development Questions
    Replies: 5
    Last Post: 2006-01-19, 16:50
  5. Emulation Mode on N90 ?
    By symbianmatd in forum General Development Questions
    Replies: 1
    Last Post: 2005-09-02, 10:55

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved