As an example you can also get and set it using my Reflection library which is useful for accessing things that Basic4android does not expose.
Code:
Dim Obj1, Obj2 As Reflector
Obj1.Target = View1
Obj1.RunMethod2("setKeepScreenOn", True, "java.lang.boolean")
Obj2.Target = Obj1.RunMethod("getKeepScreenOn")
Msgbox(Obj2.ToString, "KeepScreenOn")