title: Android: How do I stop Runnable?
body: <p>I tried this way:</p>
  
  <pre><code>private Runnable changeColor = new Runnable() {
     private boolean killMe=false;
     public void run() {
         //some work
         if(!killMe) color_changer.postDelayed(changeColor, 150);
     }
     public void kill(){
         killMe=true;
     }
  };
  </code></pre>
  
  <p>but I can't access <code>kill()</code> method!</p>