Hello,
This new thread comes after this post : http://www.b4x.com/android/forum/threads/service-startforground-and-phonesensors.32865/
Using the PhoneWakeState I was able to use some sensors. So I have tried to insert code to send SMS (some idea, why not...). The problem I had was that the SMS was only sent when the screen was ON again.
Using PhoneWakeState I was able to keep the screen on as it should be but was never able to activate the screen. Please does it exist a way to activate the screen when needed by a service ? Using Reflection perhaps ?
Thanks a lot
This new thread comes after this post : http://www.b4x.com/android/forum/threads/service-startforground-and-phonesensors.32865/
Using the PhoneWakeState I was able to use some sensors. So I have tried to insert code to send SMS (some idea, why not...). The problem I had was that the SMS was only sent when the screen was ON again.
Using PhoneWakeState I was able to keep the screen on as it should be but was never able to activate the screen. Please does it exist a way to activate the screen when needed by a service ? Using Reflection perhaps ?
Thanks a lot