title: A listener for changing variable in android
body: <p>I have a variable in my class , I want when that variable changed , I do an action in another class .
  in fact I want a listener for changing variable in android (my variable may change every minute)</p>
  
  <pre><code>public class Connect { 
       public static boolean myBoolean;
  //some actions do and myBoolean change   
  }
  
  public class Selection extends Activity implements OnMenuItemClickListener{
  
  //I want a thing like listener here ,when myboolean changed I do an action (myboolean may change every minute)
  
  } 
  </code></pre>