How to pause app in simple way on android?
<p>I am trying to make view of random text 3 times with time pausing between.
I just can't! It all run all together. I admit I don't know thread subject at all, I just need simple solution. </p>

<pre><code>  public void loading3() {

      Random randomDouble = new Random();
      temp = (double) randomDouble.nextInt(100);
      try {
        Thread.sleep(1000);
    } catch (InterruptedException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }
      result.setText(temp + "%");

    }
</code></pre>

<p>This is the code. I want to use it let's say 3-4 times in a row. How can i do it? I try inside loop or writing same methods in a row but it won't work because it doesn't wait for the first method to end before start the new one. </p>
