I want to hold all my variables somewhere where every Activity can access them and modify them. I tried storing my variables in xml file but it only works one way, I can access them but not modify them. The other option that I have thought about is creating seperate helper class that holds all my variables and offers getValue(); and setValue(); methods, but problem with this is that I think it will be resetted every time I make object of this class. So Is there any other way to have storage for variables?
I want to hold all my variables somewhere where every Activity can access them
Share
Your senod option is nearer.
In your Helper class just add a static variable
See:
Where you want to use :