Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Feb 2006

    How to know that the device is in idle state


    I need to know when the cell phone is idle, is it possible to know it? For example to know if the screensaver is active or the screen is off. Any idea?

    Thanks in advance.

  2. #2
    Super Contributor
    Join Date
    Jun 2003
    Cheshire, UK

    Re: How to know that the device is in idle state

    The best you can do is to check the "isShown()" status of the Displayable object that you think should be on screen.

    If the current displayable is a Canvas, you might receive a hideNotify() event when your application stops being on the screen. Note that you will also receive this event when the current Displayable changes. Applications that want to rely on hideNotify() should set a Canavs as current once, and never change it.

    Note that not all devices will run MIDP applications "in the background". If the application is hidden by an incoming call, for example, many devices will simply freeze the VM - no event will be sent, and no code will execute.

    Nokia, Sony Ericsson and Motorola devices, will give useful values for isShown() and will send hideNotify() events.


Similar Threads

  1. Replies: 4
    Last Post: 2008-12-16, 16:34
  2. Initiate connection to an existing and paired HF device
    By romci in forum Bluetooth Technology
    Replies: 2
    Last Post: 2008-12-02, 00:28
  3. Bluesoleil Software
    By kencooper in forum Bluetooth Technology
    Replies: 9
    Last Post: 2008-08-29, 19:46
  4. WLAN Connection from Emulator
    By capri07 in forum Mobile Java Networking & Messaging & Security
    Replies: 4
    Last Post: 2007-12-13, 05:13
  5. Detect Number Editor in Idle State
    By chrisbchrisb in forum Symbian
    Replies: 1
    Last Post: 2005-10-20, 15:34

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts