title: How to create a custom listener for a variable android?
body: <p>I'm trying to create a custom listener for a variable that changes continuously and want to keep a track of it and update my display (TextView) each time a change is registered. I've taken reference from <a href="https://stackoverflow.com/questions/7157123/in-android-how-do-i-take-an-action-whenever-a-variable-changes/7157281#7157281">In Android, how do I take an action whenever a variable changes?</a>
  But, this runs only once. I want it to continuously track the changes and update display upon state change.</p>