mergScreenSetBrightness equivalent?

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

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

mergScreenSetBrightness equivalent?

Post by simon.schvartzman » Fri Apr 29, 2022 10:48 pm

Hi team, I have an APP that runs forever taking pictures every hour and uploads them to Dropbox.

Problem I'm facing is with a user that wants to run the APP on a Motorola E phone that doesn't have the option to keep the screen always ON, even when connected to power. I have found out that pictures taken with the screen OFF are not captured even though no error is reported. What I get in Dropbox is the last picture taken when the screen was ON.

I'm taking the picture using

cameraControlDo "myCamera", "takePicture"

mergScreenSetBrightness would probably solve the problem but is iOS only !

Any ideas? Even alternatives to keep the screen always ON?

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

strongbow
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 135
Joined: Mon Jul 31, 2006 1:39 am
Location: New Zealand, Australia, Germany, Japan
Contact:

Re: mergScreenSetBrightness equivalent?

Post by strongbow » Sat Apr 30, 2022 7:40 am

Check out:

mobileLockIdleTimer

HTH
cheers, Alan

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

Re: mergScreenSetBrightness equivalent?

Post by simon.schvartzman » Sat Apr 30, 2022 1:41 pm

Hi Alan, many thanks for you input, this is exactly what I was looking for and it works fine!

At first it didn't but it was because I didn't check the Idle Timer option in the Stand Alone / Application Permissions

As always the LC forum members are a very valuable asset of the tool.

Thanks again

Best!
Simon
________________________________________
To ";" or not to ";" that is the question

Post Reply

Return to “Android Deployment”