Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Prevent Screen Timeout with Adobe AIR for Mobile on Android and iOS

I have a pure AS3 app that I'm deploying to both Android and iOS. In some cases I need the screen to not turn off for 60+ seconds. Is there a way to do this with AIR for mobile?

like image 479
b-ryce Avatar asked Jul 23 '11 17:07

b-ryce


1 Answers

i used

// no dimming
NativeApplication.nativeApplication.systemIdleMode = SystemIdleMode.KEEP_AWAKE;

to disable the screen timeout for my app. don't know if you can switch this on and off while the app is running?!

only tested this on android ... but should work on iOS too.

like image 72
Philipp Kyeck Avatar answered Sep 27 '22 19:09

Philipp Kyeck