Highwinder Active Member Licensed User Longtime User Jan 4, 2012 #1 I have written a LWP app, but it has a secondary function that needs to be able to detect when the user has turned off the screen or started up a process that would normally have the OS suspending the LWP engine. How can I be able to tell when the user has turned off the screen or otherwise done something on the phone that would cause the LWP engine to be automatically suspended? - Highwinder
I have written a LWP app, but it has a secondary function that needs to be able to detect when the user has turned off the screen or started up a process that would normally have the OS suspending the LWP engine. How can I be able to tell when the user has turned off the screen or otherwise done something on the phone that would cause the LWP engine to be automatically suspended? - Highwinder
Erel B4X founder Staff member Licensed User Longtime User Jan 5, 2012 #2 You should use the VisibilityChanged event. It should tell you when the wallpaper is not visible. Upvote 0
Highwinder Active Member Licensed User Longtime User Jan 5, 2012 #3 Thanks Erel said: You should use the VisibilityChanged event. It should tell you when the wallpaper is not visible. Click to expand... Erel, thanks, I appreciate it. I had it figured out shortly after posting, but forgot to come back in to post the answer. I also ended up using the EngineDestroyed event as well. - Highwinder Upvote 0
Thanks Erel said: You should use the VisibilityChanged event. It should tell you when the wallpaper is not visible. Click to expand... Erel, thanks, I appreciate it. I had it figured out shortly after posting, but forgot to come back in to post the answer. I also ended up using the EngineDestroyed event as well. - Highwinder