1- add the following permission in AddPermission (android.permission.WAKE_LOCK) files in the manifest editor
2- add member in
Sub Process_Globals
Dim pws As PhoneWakeState
end sub
3 - call function
sub Service_Start
pws.PartialLock
end sub
4
Sub-Service_Destroy
pws.ReleasePartialLock
end sub