Android Question Service using an another module variable, how?

Discussion in 'Android Questions' started by Alberto Michelis, Jun 2, 2015.

  1. Alberto Michelis

    Alberto Michelis Active Member Licensed User

    Hi, I have a service, and I need it changes its way depending on a varible set in another modules?
    How can I do it?
    Thanks
     
  2. NJDude

    NJDude Expert Licensed User

    Declare the variable in Process_Globals.
     
    lemonisdead likes this.
  3. Alberto Michelis

    Alberto Michelis Active Member Licensed User

    It is declared in Process_Globals of two modules and the service itself and nothing, If I no declare the variable in the service I cant use it.
     
  4. NJDude

    NJDude Expert Licensed User

    Are you prefixing those variables correctly? for example: Main.myVariable.

    Post some code to see what are you doing.
     
    Last edited: Jun 2, 2015
    lemonisdead and Peter Simpson like this.
  5. Alberto Michelis

    Alberto Michelis Active Member Licensed User

    Thanks, I didnt know I have to refer it as main.variable
     
Loading...