Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2010

    Question about the flashbacklight()

    now I met a problem. That is about the function of flashbacklight();
    when I use it in my programm as follows:
    int count = 0;
    if( count++>10 ){
    count = 0;
    it works correctly in e71 ,n96 except n95.
    I just wanna make the screen flash every other 10 seconds ,in which way the backlight can't get dim.
    However, n95 with these codes can't work at all.I don't know how to fix that.And Im so depressed about that.
    thanks in advance!

  2. #2
    Super Contributor
    Join Date
    May 2008
    Helsinki, Finland

    Re: about the flashbacklight()


    If you have tested your code to work correctly in e71 ,n96 - as you said,
    then for what comes to the N95...you could check out this article:


    When I tested the flashing backlight myself, noticed that in N95 the user
    needs to adjust the light to minimum within the phone's settings before
    the flashBacklight method provided visual feedback at all.

    This was not necessary in e.g. 5800Xpress and N97Mini devices that did
    work ok during testing.

    Code used:

     * To change this template, choose Tools | Templates
     * and open the template in the editor.
    package test_flash_backlight;
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    public class test_flashbacklight extends MIDlet
    implements CommandListener
    public test_flashbacklight()
    isPaused = false;
    display = Display.getDisplay(this);
    mainScreen = new List("Backlight Demo", 3);
    mainScreen.append("Set backlight ON", null);
    mainScreen.append("Set backlight OFF", null);
    public void startApp()
    isPaused = false;
    public void pauseApp()
    isPaused = true;
    public void destroyApp(boolean unconditional)
    public void commandAction(Command c, Displayable d)
    if(c == selectCommand)
    boolean status = true;
    int option = mainScreen.getSelectedIndex();
    if(option == 0)
    status = display.flashBacklight(10000);
    System.out.println("Error: Could not start backlight");
    } else
    status = display.flashBacklight(0);
    System.out.println("Error: Could not stop backlight");
    } else
    if(c == exitCommand)
    private static final Command selectCommand = new
    Command("SELECT", 1, 1);
    private static final Command exitCommand = new Command("EXIT", 7,
    private boolean isPaused;
    private Display display;
    private List mainScreen;
    Best regards,
    [FONT="Comic Sans MS"][COLOR="Blue"][/COLOR][I]Marko Lumivuori
    Technical Support
    +358 40 8019330

Similar Threads

  1. flashBacklight in Nokia 6131
    By i22secuf in forum Mobile Java General
    Replies: 6
    Last Post: 2009-02-02, 11:24
  2. How to avoid flickering when using flashBacklight?
    By MobileVisuals in forum Mobile Java General
    Replies: 0
    Last Post: 2007-12-08, 08:33
  3. flashBacklight
    By smb101 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2004-11-25, 10:39
  4. vibrate() and flashBacklight() problems
    By kalgik in forum Mobile Java General
    Replies: 0
    Last Post: 2004-08-18, 21:05
  5. flashBacklight
    By cwfvanoordt in forum Mobile Java General
    Replies: 0
    Last Post: 2003-12-05, 15:12

Posting Permissions

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