Switch screen on/off, control brightness

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
grifma
Posts: 2
Joined: Tue Sep 01, 2015 3:56 pm

Switch screen on/off, control brightness

Post by grifma » Tue Sep 01, 2015 4:06 pm

Hello,

I'm using mobileLockIdleTimer to prevent the phone from sleeping during a timer. I don't want to waste battery while the timer is running, but need the screen to be on towards the end of the timer, without input from the user.

Is there a way to switch off/on the screen, or control the brightness?

I've looked through the docs and searched the forums but not found anything.

Thanks in advance!

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Switch screen on/off, control brightness

Post by Klaus » Wed Sep 02, 2015 1:58 pm

HI grifma,

1. welcome to the forum! :D
Is there a way to switch off/on the screen, or control the brightness?
2. I'm afraid this is not possible with the build-in means of Livecode.


Best

Klaus

grifma
Posts: 2
Joined: Tue Sep 01, 2015 3:56 pm

Re: Switch screen on/off, control brightness

Post by grifma » Sat Sep 05, 2015 11:07 am

Thanks Klaus.

simon.schvartzman
Posts: 641
Joined: Tue Jul 29, 2014 12:52 am
Location: Brazil

Re: Switch screen on/off, control brightness

Post by simon.schvartzman » Wed Jan 25, 2017 12:59 pm

Hi grifma, I'm working on an App that will require the same functionality mentioned in your post and I wonder if you found a solution to be shared.

Many thanks
Simon
________________________________________
To ";" or not to ";" that is the question

Post Reply

Return to “Android Deployment”