title: a good implementation of time-based loop on android
body: <p>I'm having my first try at writing a game for android, and need to write a loop for drawing the animation on canvas. This is basically what I need:</p>
  
  <pre><code>every 0.1 seconds do { //0.1 seconds is arbitrary of course, I need a time frame that's good for animation
     every 5 seonds do {
        someStuff();
      }
     drawEverything();
  }
  </code></pre>
  
  <p>Can anyone recommend a good way of implementing this?
  Thanks!</p>