Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User js001's Avatar
    Join Date
    Mar 2008
    Posts
    13
    hi all...my question title sounds wierd..i dont know the exact word for mobile background light...i mean, say, when the mobile is idle for some time (no user keypress), mobile screen gets darkened a bit. As soon as you press any key, the screen returns to it normal display....this is default mobile behaviour

    in my application, while user is viewing video, in absence of any user keypress during this time, the screen gets darkened. So its very irritating to press some key to turn screen back to its normal brightness regularly..

    Can anybdy plz tell me how do I "disable" this screen darkening effect..thnx in advance....

  2. #2
    Nokia Developer Champion jappit's Avatar
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,391
    Helpful answers within this forum:

    http://discussion.forum.nokia.com/fo...ad.php?t=48831

    Pit

  3. #3
    Registered User js001's Avatar
    Join Date
    Mar 2008
    Posts
    13
    Hi Jappitt,
    thanks for your help. From the thread you mentioned, the required method is
    Code:
    DeviceControl.setLights(0,100);
    But it was also mentioned somewhere that this is not part of java api and its part of nokia API. I didnt know that nokia has its own set of API for J2ME.

    Where can i download the jar for this nokia API. I am using device profile MIDP 2.0 and device configuration CLDC 1.1 on N95.

  4. #4
    Registered User js001's Avatar
    Join Date
    Mar 2008
    Posts
    13
    Hi...I found that jar file of nokia ui api...Do I need to use TimerTask so that backlight remains on for a specific interval, as it says in documentation that the method is unpredictable..

  5. #5
    Nokia Developer Champion jappit's Avatar
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,391
    Hi js001,

    sorry for not having answered you before. Anyway yes, you need to periodically call setLights() method within your application, otherwise display light will likely turn off after a while.

    Pit

  6. #6
    Registered User js001's Avatar
    Join Date
    Mar 2008
    Posts
    13
    Hi jappit...thanks a lot for conforming..

  7. #7
    Registered User shaii's Avatar
    Join Date
    Dec 2004
    Posts
    369
    there are such proprietery API for almost every vendor (motoroloa/lg/samsung) etc...
    so ull need a different call for turning on the light based on the handset ur working with

  8. #8
    Registered User don41382's Avatar
    Join Date
    Nov 2008
    Posts
    10
    Quote Originally Posted by js001 View Post
    hi all...my question title sounds wierd..i dont know the exact word for mobile background light...i mean, say, when the mobile is idle for some time (no user keypress), mobile screen gets darkened a bit. As soon as you press any key, the screen returns to it normal display....this is default mobile behaviour

    in my application, while user is viewing video, in absence of any user keypress during this time, the screen gets darkened. So its very irritating to press some key to turn screen back to its normal brightness regularly..

    Can anybdy plz tell me how do I "disable" this screen darkening effect..thnx in advance....
    Just use a thread which runs in background and calls the backlight function every 5 secs.

    Don

  9. #9
    Registered User don41382's Avatar
    Join Date
    Nov 2008
    Posts
    10
    Thanks for the help!Using J2MEPolish (www.j2mepolish.org) helps a lot!

    Don

Similar Threads

  1. Replies: 0
    Last Post: 2004-11-24, 18:49
  2. automatic screen saver (darkening)
    By ysuter in forum Mobile Java General
    Replies: 2
    Last Post: 2004-10-18, 09:32
  3. Replies: 2
    Last Post: 2004-09-15, 22:47
  4. How to disable the screen standby mode
    By thomasrdk in forum Symbian C++
    Replies: 3
    Last Post: 2004-08-09, 14:18
  5. nokia 7210 modem via IR doesn't work !
    By oussamaaiadi in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2003-03-06, 10:46

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