Android Question Does PhoneWakeState partiallock work explicitly for each service or generally app based


Well-Known Member
Licensed User
Hi everyone,

I consider myself an experienced programmer in B4a yet there are times in which I doubt that completely. Here is a situation. Let's say I have two services which both use PhoneWakeState's partiallock. Is partiallock enabled explicitly for each service or generally for the application. That's to say if I partiallock the phone in each service's service_create sub and I releasepartiallock in each service_destroy sub and the phonewakestate variables are declared separately in each service if I stop one of the services or if android stops one of the two services and activates its Service_Destroy sub is partiallock released also for the other. I suppose I could test it myself but right now I am not in front of my computer.

Thanks in advance