title: How to change/reset handler post delayed time?
body: <p>I'm using <code>postDelayed</code> method of the <code>Handler</code> in order to perform an action after certain amount of time:</p>
  
  <pre><code>private static int time_to_wait = 2000;
  
  Handler handler = new Handler();
  handler.postDelayed(new Runnable() {
    public void run() {
      // Make Action
    }
  }, time_to_wait);
  </code></pre>
  
  <p>now in the middle of the waiting time i want to change the value of the remaining milliseconds due to some processing results, let's say it now waited <strong>1000 ms</strong> and i want to make it begins to count from <strong>2000</strong> again, So, i set the <code>time_to_wait</code> value to 2000 but it doesn't take that in count as it only takes the var value <strong>(2000)</strong> and just waits that time regardless changing the <code>time_to_wait</code> value to any other value.</p>