title: Android - How to continuously listen for a static variable change from a Fragment class?
body: <p>Say for example, I have a static class like this</p>
  
  <pre><code>public static class MyClass {
      private static String aString;
      public static String setAString(String aString) {
          this.aString = aString;
      }
      public static String getAString() {
          return aString;
      }
  ｝
  </code></pre>
  
  <p>How could a Fragment knows if there is a change of the value of "MyClass.aString"? </p>
  
  <p>(It's of course ok to use a forever loop but I think it should be avoided...)</p>
  
  <p>Many, many thanks for a help!</p>