Prevent screen from dimming

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
andyh1234
Posts: 442
Joined: Mon Aug 13, 2007 4:44 pm
Location: Eccles UK
Contact:

Prevent screen from dimming

Post by andyh1234 » Mon Jan 17, 2011 6:51 pm

Is it possible to prevent the screen from dimming after the user does nothing for a while?

Im just playing with livecode os at the moment, writing basics like clocks etc to see how it works, but one of the first problems with things like clocks etc is the screen dims after about 20 seconds of inactivity. If there is a flag I can set so this does not happen it would be good.

Andy

RRobert
Posts: 151
Joined: Sat Feb 28, 2009 8:20 pm

Re: Prevent screen from dimming

Post by RRobert » Tue Jan 18, 2011 3:46 am

In ObjC you would add the following line to the application delegate.

Code: Select all

[[UIApplication sharedApplication] setIdleTimerDisabled:YES];

I don't think it is possible in LiveCode yet.

See: iOS Application Programming Guide: Implementing Common Application Behaviors

You should file a report in the QA Center.

Robert

andyh1234
Posts: 442
Joined: Mon Aug 13, 2007 4:44 pm
Location: Eccles UK
Contact:

Re: Prevent screen from dimming

Post by andyh1234 » Tue Jan 18, 2011 11:02 am

Thanks, I can see that is xCode, seems a simple enough thing to do there.

Unfortunately I cannot log into the QA Center, I cannot see anywhere you can sign up for an account, only a log in.

Janschenkel
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 977
Joined: Sat Apr 08, 2006 7:47 am
Location: Aalst, Belgium
Contact:

Re: Prevent screen from dimming

Post by Janschenkel » Tue Jan 18, 2011 2:17 pm

You can always email support at runrev dot com to either file it for you, or grant you access to the quality center.

Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com

andyh1234
Posts: 442
Joined: Mon Aug 13, 2007 4:44 pm
Location: Eccles UK
Contact:

Re: Prevent screen from dimming

Post by andyh1234 » Tue Jan 18, 2011 2:24 pm

Thanks Jan, ive done that now.

I think I need to a new bookmark to keep track of the different lists, but its just great to be able to ask someone when I hit a brick wall, hopefully I can answer other peoples questions as well.

Thanks again.

Andy

Post Reply

Return to “iOS Deployment”