D Dirk A Member Licensed User Longtime User Oct 16, 2012 #1 Hi , I'm receiving tcp commands in a service. When my phone goes to sleep , I'm still receiving the commands but I try to wake up my activity with B4X: If IsPaused(Main) Then StartActivity(Main) with no result. How do I wake up the phone ?
Hi , I'm receiving tcp commands in a service. When my phone goes to sleep , I'm still receiving the commands but I try to wake up my activity with B4X: If IsPaused(Main) Then StartActivity(Main) with no result. How do I wake up the phone ?
Erel B4X founder Staff member Licensed User Longtime User Oct 16, 2012 #2 Note that when the device really goes to sleep it will turn off the wifi connection. See PhoneWakeState from Phone library. And also these results: Basic4android Search: turn on screen Upvote 0
Note that when the device really goes to sleep it will turn off the wifi connection. See PhoneWakeState from Phone library. And also these results: Basic4android Search: turn on screen
D Dirk A Member Licensed User Longtime User Oct 16, 2012 #3 I just want to turn on the screen if the user has turned it off to turn on the screen I use B4X: Dim p As PhoneWakeState p.KeepAlive(True) but nothing happens Upvote 0
I just want to turn on the screen if the user has turned it off to turn on the screen I use B4X: Dim p As PhoneWakeState p.KeepAlive(True) but nothing happens
Erel B4X founder Staff member Licensed User Longtime User Oct 16, 2012 #4 Are you sure that the code is executed? Upvote 0
D Dirk A Member Licensed User Longtime User Oct 17, 2012 #5 I added p.ReleaseKeepAlive before p.KeepAlive(True) , now it works but it always shows the "lock screen" and I have to unlock manually . Can you unlock programmatically ? Last edited: Oct 17, 2012 Upvote 0
I added p.ReleaseKeepAlive before p.KeepAlive(True) , now it works but it always shows the "lock screen" and I have to unlock manually . Can you unlock programmatically ?
Erel B4X founder Staff member Licensed User Longtime User Oct 17, 2012 #6 See this thread: http://www.b4x.com/forum/basic4andr...-unlock-password-locked-screen.html#post84636 Upvote 0