title: Timer should run One time but with different Intervals
body: <p>I have a button on which I want to set the timer for 5 seconds for the first time and it should perform some task after completing 5 seconds. Also if user click button 2 times it should start timer for 10 seconds and after 10 seconds it should perform specific task. and if user click 3rd time it should stop all running timers. so I have do not know How to implement timer for one time 
  what I have search is <a href="https://stackoverflow.com/questions/1877417/how-to-set-a-timer-in-android">this</a>. But in this link it is continuously repeating after specific period of time, whereas I want to run once. </p>
  
  <p>Now what I want </p>
  
  <ul>
  <li>To start timer with first click (of 5 seconds)and if meanwhile user click 2nd time it should set timer with with new time period and if user click third time it cancels out all timers.</li>
  <li>I do not want to use Thread timer using sleep method.</li>
  <li>I want same behavior as there is in camera app in android 5.0 v. </li>
  </ul>
  
  <p>So please tell me how to do this any code and source code would be appreciated. </p>