×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Feb 2013
    Posts
    11

    DeviceControl Backlight

    Hi,

    DeviceControl.setLights(0,100); works well, but how can you change the light back to the users default value (in the settings)?
    I could not find a method like DeviceControl.getLight() or something like that.

    Is there a good solution for the problem?

  2. #2
    Registered User
    Join Date
    Mar 2013
    Location
    United Kingdom
    Posts
    161

    Re: DeviceControl Backlight

    Such a method doesn't exist - as an alternative could you not call flashLights() and just put a timer so it returns to the users default?

  3. #3
    Registered User
    Join Date
    Feb 2013
    Posts
    11

    Re: DeviceControl Backlight

    When I use flashLights(), the backlight makes a blinking effect during the given time, so I can't use it.
    Display.flashBacklight() has the same effect.

  4. #4
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: DeviceControl Backlight

    What is the underlying problem you are trying to solve?

    If, for example, you're trying to prevent the backlight from switching off, consider DeviceControl.resetUserInactivityTime().

  5. #5
    Registered User
    Join Date
    Feb 2013
    Posts
    11

    Re: DeviceControl Backlight

    I want to set the backlight to 100% for some time (flashlight) and then go back to default value. I've tried to set it to 1, but on some devices with 1% backlight it is VERY hard to see something on the screen.

  6. #6
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: DeviceControl Backlight

    Ah, in that case, I think you're out of luck. I suspect you have to exit the app to restore the default.

  7. #7
    Registered User
    Join Date
    Feb 2013
    Posts
    11

    Re: DeviceControl Backlight

    Hm, if there's no better solution, I will set it to 40. I think with this value, it should be readable on most devices. And - who needs a flash-light when the sun is shining? (sun => harder to read screen)
    Before I used the value 0, and it was still readable on my N8, but when I tested it on the Asha 311 my brother got a few days ago, it was hardly readable. But with 40 it is.
    Thanks anyway

Similar Threads

  1. Backlight, DeviceControl and UI API
    By brian.tiplady in forum Mobile Java General
    Replies: 13
    Last Post: 2009-08-01, 23:55
  2. Help Regarding DeviceControl
    By mottaisami in forum Mobile Java General
    Replies: 3
    Last Post: 2007-08-02, 19:39
  3. DeviceControl??? Where it is? Pl help................
    By montooshah in forum Mobile Java General
    Replies: 2
    Last Post: 2003-12-17, 07:09
  4. DeviceControl
    By mcmcdonald in forum Mobile Java General
    Replies: 2
    Last Post: 2003-07-02, 08:18
  5. DeviceControl 7650
    By ant01 in forum Mobile Java Tools & SDKs
    Replies: 5
    Last Post: 2002-08-12, 04:32

Posting Permissions

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