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

Discussion in 'Android Questions' started by hatzisn, Jun 23, 2019.

  1. hatzisn

    hatzisn Active 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
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Generally for the application.
     
    Sgardy likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice