| Reply | « Previous Thread | Next Thread » |
|
Hi,
On N95, I am trying to keep the Screen Saver from taking control bye performing the following command in a thread. But no success, any Idea? Thanks Tzahi Witman ... while(true) { DeviceControl.setLights( 0, 100 ); Thread.sleep( 2000 ); // 2 seconds } ... |
|
A bump on this thread.
I too am trying to do something to stop the screen saver from coming on while video is playing in my J2ME app. Is there a way to do this? Or should I just be letting the user know they need to press a key every once in a while. It doesn't happen when played through RealPlayer so there must be a Symbian way of doing it. |
|
Does anyone know which E3 FP1 Devices this doesn't work on? I am testing on a N95-3 (850MHz version with V10.2.006 firmware) and it doesn't seem to be working.
Notes from latest Nokia-UI docs below. Quote:
|
|
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
|
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| N95 Screen Server | witmant | Mobile Java General | 3 | 2008-09-27 11:09 |
| Screen type of N95 8GB | MatthiasStevens | Mobile Java General | 1 | 2008-08-18 18:37 |
| Screen Saver using J2ME | comando_c | Mobile Java General | 3 | 2007-09-03 20:14 |
| .GIF to Screen Saver (6681) | greatarsenic | General Discussion | 4 | 2005-11-20 04:27 |
| Screen saver, backlight and User::ResetInactivityTime() | lab1348 | General Symbian C++ | 0 | 2003-10-06 16:51 |