Android Question Turn on the screen in the service

alirezahassan

Active Member
Licensed User
hi all.
i use startserviceat to start my service in the exact time.
and i write code to give me a notification when the service is started and i want to turn on the screen when my service is started.
i also wirite this code
B4X:
phone.KeepAlive(True)
phone.PartialLock
But for the first time, the phone screen turns on and does not turn on again. what should i do to always turn on the screen when my service is started?
 
Top