How can i check if screen is off (or the phone is on sleep mode)? I would like to use ScreenOff phone event but i cant find a tutorial on the same. I would like to check if phone screen is off and then perform some tasks
e.g
e.g
B4X:
if <screen is off> then
perform task a