I have been trying to put android asleep grammatically.
I have tried:
This does seem to work but my app has problems restarting after this. Is there another way to do this?
I have tried:
B4X:
Dim p As Phone, n As Float = 0
p.SetScreenBrightness(n)
This does seem to work but my app has problems restarting after this. Is there another way to do this?