Android Question Disable Screen Lock

Steini1980

Member
Licensed User
Hi,

is it possible to Disable the Screen Saver or respectively the Screen Lock on a specific activity?

While Data transfer the Tablet goes sometimes onto Screen Lock and if the User clicks some buttons before data transfer is finished, it is possible that the User cancels the Transfer. But if the Tablet can't start Screen Lock the user see's the Upload progress.
 

Peter Simpson

Expert
Licensed User
Hello,
It sounds like you might want to try the Phone Library. Check out the code below.
B4X:
Sub Globals
'Declare as you will need the Phone Library
         Dim Awake As PhoneWakeState
End Sub
B4X:
'Wake state(keep device alive)
         Awake.KeepAlive(True)
Once you have finished transferring the data, you must release keep alive.
B4X:
'Release
        Awake.ReleaseKeepAlive
Enjoy...
 
Top