title: wait() won't hold the progress of the application
body: <p>My issue is that the appending the value of "val" which is passed to the method that contains the wait() call doesn't happen in intervals. I would appreciate it if someone can actually fix this. </p>
  
  <p>I have tried handler.postDelay(){} and that doesn't seem to help either, if i'm asking it to wait for one second, it will stay for five seconds or even less and append the 10 digits value I'm trying to append in intervals. For example, if I have "123456" it should print "1" then wait for 1 second, print "2" and so on.</p>
  
  <pre><code>public void appendData(val){
  logs.append(String.valueOf(val));
  //This is what I'm using to start the waiting period
  synchronized (this) {
    try {
      this.wait(1000);
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
  }
  </code></pre>
  
  <p>I Can not figure it out whatever I change or make, it will always not wait, and at the end appends the whole number, or to be exact the whole number appears in frot of me on the UI at once, it doesn't happen on intervals as I want to be.</p>