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

    dim pws as PhoneWakeState
    and then, somewhere later down the line, in another sub, do

    dim pws as PhoneWakeState
    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!
  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