And I have the same issue where the screen saver still comes on for the 6120 Classic firmware V03.70.
Code I am using is as follows:
Code:
private class KeepLightsOn extends Thread {
private boolean lightsOn;
private int LIGHTS_SLEEP_TIME = 10000;
/**
* Constructor
*
*/
KeepLightsOn() {
}
public void run() {
//myMidlet.addErrorLog("Lights on started");
while(lightsOn) {
//#ifdef polish.api.nokia-ui
//# //DeviceControl.setLights(0, 0);
//# DeviceControl.setLights(0, 100);
//#endif
try {
sleep(LIGHTS_SLEEP_TIME);
}
catch (InterruptedException ie) {
myMidlet.addErrorLog("MP: Lights on interrupted: " + ie.toString());
}
catch (Exception e) {
}
}
}
public void startLights() {
lightsOn = true;
start();
}
public void stopLights() {
//myMidlet.addErrorLog("Lights on stopped");
lightsOn = false;
//TODO fix this setting of the lights manually
//#ifdef polish.api.nokia-ui
//# DeviceControl.setLights(0, 50);
//#endif
}
} // End KeepLightsOn