I’m creating a class that contains a EditText and when this EditText changes I store the value in a variable in this class.
But I also need this value in an other class and I want to update this value everytime the EditText changes.
So what is the best solution to this problem? How can I notify my other class that the EditText has changed?
The EditTextalready has a textChangedListener, but can I add a second textChangedListener without overwriting the first?
Thx
You can try adding a callback to the other class:
http://www.javaworld.com/javatips/jw-javatip10.html