title: How to use a 'wait' command inside any loop?
body: <p>Learning Android development. 
  Code has to wait for few seconds/minutes/hours before going to the next statement in a <code>for</code> Loop.</p>
  
  <pre><code>for( i=0; i&lt;number; i++) {
  
    // Do Something
  
    // Then Wait for x hours, y minutes, and z seconds. Then proceed to next command.
  
    // Do some more things.
  
  } //End for loop.
  </code></pre>
  
  <p>I searched for this but found many answers like <code>thread.Sleep</code>, <code>Sleep</code>, <code>try{wait(); } Catch{ }</code>, etc...</p>
  
  <p>Also, found out about <code>Handler</code>. Can I use a <code>Handler</code> inside a <code>for</code> loop?? </p>
  
  <p>Rather, is there a simple command like wait(x hours, x minutes, x seconds); something like this?? </p>
  
  <p>Please help!!</p>