Android Question Screen On in service module

PoleStar

Member
Licensed User
Longtime User
Hi my friends
Excuse me ... I have a question.
how can the screen on in the service ?
For example, When he was 12, Play a Music and Screen ON...

Thanks
 

PoleStar

Member
Licensed User
Longtime User
You can use PhoneWakeState to turn the screen on.
Thanks Erel for your answer

B4X:
    Dim p As PhoneWakeState
    p.KeepAlive(True)

your mean that?
I Whenever use this code, if the screen turns off , turn on again?
 
Upvote 0
Top