hi all anyone can help me with this issue?
, I have doubt to use the gloables variables, since I have a module for handling these, but sometimes when I update its value in one activity, and occupied after a service does not work the first time, the second time that uses the global variable cool, but I had updated their value. what is the best way to work with global variables?. because when you use the module for this purpose is not working properly and I generated data problems with the application, because sometimes I change the variables and the consistency of its values is lost. better work in global variables database?. there is a singleton pattern (as in java) for consistency of information?
thank you very much and attentive to your answer.
, I have doubt to use the gloables variables, since I have a module for handling these, but sometimes when I update its value in one activity, and occupied after a service does not work the first time, the second time that uses the global variable cool, but I had updated their value. what is the best way to work with global variables?. because when you use the module for this purpose is not working properly and I generated data problems with the application, because sometimes I change the variables and the consistency of its values is lost. better work in global variables database?. there is a singleton pattern (as in java) for consistency of information?
thank you very much and attentive to your answer.
Last edited: