×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Sep 2008
    Posts
    7

    N95 Screen Server

    Hi,

    The N95 Screen Saver becomes active during the execution of the midlet.
    How can I display and show the midlet screen after the N95 Screen Saver becomes active.

    Thanks

    Tzahi Witman

  2. #2
    Nokia Developer Moderator
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471

    Re: N95 Screen Server

    Hi,

    This article explains it.

  3. #3
    Registered User
    Join Date
    Sep 2008
    Posts
    7

    Re: N95 Screen Server

    I found the following article in this fourm,

    But the solution does not work'

    Any ideas?

    Thanks

    Tzahi Wirman


    Controlling screen saver in MIDlets on S60 devices
    Description:
    It is now possible to prevent screen saver appearance in MIDlets by using the DeviceControl class of Nokia UI API.
    This functionality is available starting from S60 3rd Edition, Feature Pack 1 devices, although some early S60 3rd Edition, FP1 releases do not support this. Also the AT&T/Cingular-branded S60 3rd Edition devices support this functionality.
    Solution:
    Calling the setLights() function once will delay screen saver appearance but does not disable it permanently. Thus, it is needed to call the setLights() function repeatedly, for example, in a separate thread. The delay between two calls should be smaller than the timeout of the screen saver (usually something like 15 seconds or more).
    Note that calling setLights() only once will still keep the set light level until the MIDlet is closed or the function is called again with a different level. The looping is only needed if the screen saver should be disabled.
    Here is a piece of code that calls the setLights() function in a loop and thus prevents the screen saver from appearing:
    import com.nokia.mid.ui.DeviceControl;
    // ...
    // run() function in a Thread/Runnable
    public void run()
    {
    // ...
    while( true )
    {
    DeviceControl.setLights( 0, 100 );
    Thread.sleep( 2000 ); // 2 seconds
    }
    // ...
    }

  4. #4
    Registered User
    Join Date
    Sep 2008
    Posts
    7

    Red face Re: N95 Screen Server

    Quote Originally Posted by bogdan.galiceanu View Post
    Hi,

    This article explains it.
    I could not found the code to disable screen saver can you be more spcifics.

    Thanks

Similar Threads

  1. Problem with E90 and secondary screen
    By Tatanka.nbr1 in forum Symbian
    Replies: 5
    Last Post: 2008-06-27, 10:01
  2. AGPS Server On N95
    By tonyhabayeb in forum Symbian
    Replies: 0
    Last Post: 2008-05-15, 07:25
  3. Unable to start mobile web server on N95 devices
    By pravesh3127 in forum Mobile Web Server
    Replies: 3
    Last Post: 2008-05-10, 17:36
  4. Replies: 1
    Last Post: 2008-03-31, 08:04
  5. how to use udp, for sending data server to client
    By acayir in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2006-08-02, 19:18

Posting Permissions

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