S shaxboz Member Licensed User Longtime User Apr 30, 2014 #1 Hi! I have simple widget. And I do`nt know this widget doesn`t work when phone screen is off. So, How can I check screen state, is it on or off?
Hi! I have simple widget. And I do`nt know this widget doesn`t work when phone screen is off. So, How can I check screen state, is it on or off?
Erel B4X founder Staff member Licensed User Longtime User Apr 30, 2014 #2 You can PhoneEvents to listen to the ScreenOn / ScreenOff events. Note that these events will only be intercepted when the process is running. Upvote 0
You can PhoneEvents to listen to the ScreenOn / ScreenOff events. Note that these events will only be intercepted when the process is running.
S shaxboz Member Licensed User Longtime User Apr 30, 2014 #3 Thanks Erel. But I am new, you know. Can you give me little example? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Apr 30, 2014 #4 See this link: http://www.b4x.com/android/forum/threads/phone-library-update-v1-34.7829/#content Upvote 0