Android Question PhoneWakeState

Discussion in 'Android Questions' started by Troberg, Mar 26, 2015.

  1. Troberg

    Troberg Well-Known Member Licensed User

    Is it important that I use the same instance of PhoneWakeState when I set KeepAlive and when I set ReleaseKeepAlive.

    In other words, do I have to declare a PhoneWakeState and keep it, or can I just do a

    Code:
    dim pws as PhoneWakeState
    pws.KeepAlive(
    True)
    and then, somewhere later down the line, in another sub, do

    Code:
    dim pws as PhoneWakeState
    pws.ReleaseKeepAlive
    It would be neater if I could reduce the number of variables I need to keep, and keep things more local.
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    No. It is not important.
     
    Troberg likes this.
  3. Troberg

    Troberg Well-Known Member Licensed User

    Thanks, one more long time span variable down!
     
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