I want to keep my screen on all the time as long as my app is being used. the problem i am having is that i have to kill the app to get it to go back to letting it sleep. how can i make it let the phone sleep when on home screen. but go back to keeping the screen on when using the app. here is my code.
Sub Activity_Resume
RefreshMain
Awake.KeepAlive (True)
End Sub
Sub Activity_Pause (UserClosed As Boolean)
Awake.ReleaseKeepAlive
End Sub
Sub Activity_Resume
RefreshMain
Awake.KeepAlive (True)
End Sub
Sub Activity_Pause (UserClosed As Boolean)
Awake.ReleaseKeepAlive
End Sub