I know I can wait for screen on/off events using PhoneEvents. But what I want to do is check if screen is on/off at any given time. To elaborate, when a notification comes, I want to do one thing if screen is on and another if screen is off.
I found this Java code. Could you please translate to B4A?
https://stackoverflow.com/questions...the-screen-is-on-in-android/17348755#17348755
I found this Java code. Could you please translate to B4A?
https://stackoverflow.com/questions...the-screen-is-on-in-android/17348755#17348755