I have multiple classes:
- the main activity
- service
- settings
With settings it is possible to change a certain delay (variable) which I need (I need the value of that variable) in service.
How should I implement this?
- should I start settings with an intent and make it return the value of delay?
- should I make a getter which can return the value after creating an instance of settings with something like mysettings.getdelay()?
- or is there another (/better) way of doing this?
thanks
[EDIT]
I ended up using something like Ridcully's answer. Only difference is that I didn't give a public declaration and used a getter and setter instead. People always told me to use getters and setters.