handler.postDelayed() not working
<p>I want to repeat execution of some codes after a delay. Following is the code. </p>

<pre><code>public void hintrun(int i){
     Handler handler = new Handler(); 

     for(int j = 1; j&lt; i+1;j++)
        {
    handler.postDelayed(new Runna(j), 1000); 

        }
}

class Runna implements Runnable { 
private int j;
public Runna(int j2) {
    // TODO Auto-generated constructor stub
    j=j2;
}

    public void run() {  
// some code
}
}
</code></pre>

<p>But it is not working. If say the <code>for</code> loop runs 3 times, then the code is run three times immediately after 1000 ms. I want a gap of 1000 ms between each execution.</p>
