I’m not sure if th ecurrent beta already has this ability but it would be nice if it could be added.
Can you allow Authomation to prevent the screen from going to sleep? I use my tablet at work to keep an eye on my dogs. I’ve looked all over but can’t seem to find this option in your app. Unfortunately the screen ‘sleep’ on my tablet settings is a maximum of 30 minutes, which means the screen turns off and the app seems to stop.
For example, ImperiHome has this option and I can leave the tablet (HP Touchpad on Touchstone charger) on the whole day and sneak a peak at the kids at my leisure.
If I am not mistaken, this is the function to call to implement this as eg an option in the settings:
public void setKeepScreenOn (boolean keepScreenOn)
Added in API level 1
Controls whether the screen should remain on, modifying the value of KEEP_SCREEN_ON.
Related XML Attributes
android:keepScreenOn
Parameters
keepScreenOn Supply true to set KEEP_SCREEN_ON.
public boolean getKeepScreenOn ()
Added in API level 1
Returns whether the screen should remain on, corresponding to the current value of KEEP_SCREEN_ON.
Related XML Attributes
android:keepScreenOn
Returns
Returns true if KEEP_SCREEN_ON is set.