App is not running after turn off display #13639
-
I deployed simple app to mobile. If I click button, then it writes the time every 10 seconds to a file. I open the App click the start button, put the app in background. Around I can also explain the 3 records in the gap. The mobile display flashed on and off.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
never used it, can just point you to the readme part: and there is https://titaniumsdk.com/api/titanium/ui/window.html#properties_keepscreenon but don't think you want that but those are the options in the "keep the device awake" from Android https://developer.android.com/training/scheduling/wakelock |
Beta Was this translation helpful? Give feedback.
never used it, can just point you to the readme part:
https://titaniumsdk.com/api/titanium/android/notification.html#wakelock
and use one of
https://titaniumsdk.com/api/structs/wakelockoptions.html
and there is https://titaniumsdk.com/api/titanium/ui/window.html#properties_keepscreenon but don't think you want that but those are the options in the "keep the device awake" from Android https://developer.android.com/training/scheduling/wakelock