Hello,
I am using Flash Builder 4.5 to develop an application for iOS and when check the NativeApplication.nativeApplication.timeSinceLastUserInput property I get a proper value when using the Emulator on the desktop but it returns -1 when running on the device. Is this a bug? I don't yet have an Android or Blackberry Tablet device for testing, does anyone know if this value returns correctly on these devices?
Looking at the bigger picture, I have an application that has a countdown timer displayed. I use the systemIdleMode setting of KEEP_AWAKE to avoid the app suspending but I want to dim the screen after a certain idle period through actionscript to preserve battery life. I am doing this by having a black backgroundColor on my TabbedViewNavigatorApplication and setting its' alpha value to 0.2 when the timeSinceLastUserInput gets over 30 . This works great on the emulator but not on the device. Any other way to accomplish this?
Thanks in advance,
-Jeff Kelley
independent application developer