You Are Here:

Community: Developer Discussion Boards

#1 Old Question N95 Keeping the Screen Saver from taking control - 2008-10-05, 18:09

Join Date: Sep 2008
Posts: 7
witmant
Offline
Registered User
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
}
...
Reply With Quote

#2 Old Re: N95 Keeping the Screen Saver from taking control - 2008-10-31, 00:04

Join Date: Jul 2005
Posts: 48
sinkers
Offline
Registered User
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.
Reply With Quote

#3 Old Re: N95 Keeping the Screen Saver from taking control - 2008-11-03, 02:06

Join Date: Jul 2005
Posts: 48
sinkers
Offline
Registered User
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:
This function may also be used to prevent screen saver appearance (supported in S60 devices starting from S60 3rd Ed FP1, except for some early FP1 devices). Calling this function once will delay the screen saver appearance but does not disable it permanently. Thus, if the screen saver should be wholly disabled, it is needed to call the function repeatedly for example in a separate thread. The delay between two calls should be smaller than the time-out of the screensaver (the time-out may be for example 15 seconds or more depending on the used device).
Reply With Quote

#4 Old Re: N95 Keeping the Screen Saver from taking control - 2008-11-03, 04:27

Join Date: Jul 2005
Posts: 48
sinkers
Offline
Registered User
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 With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
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

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d134434X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZentertainmentQ qfnZtopicQUqfnTopicZj2meQ qfnZtopicQUqfnTopicZjavaQ qfnZtopicQUqfnTopicZmediaQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ