title: Display charecters in textview with time delay  - android
body: <p>I want to display  letters using textview. and the <strong>letter should display in textview after some time interval</strong>.   </p>
  
  <p>i used following code....</p>
  
  <pre><code>String a="Apple";
  String b="";
  .......
  .......
  
  
  public void run() {
  
      for (int i = 0; i &lt; 5; i++) {
          b=b+""+a.charAt(i);
          mTextView.setText(b); //Problem here
          Log.d("Letters",""+b);
              try {
                    sleep(2000); 
             } catch (InterruptedException e) {}
      }
  </code></pre>
  
  <p><strong>Log cat Result:</strong>
  android.view.ViewRoot$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.<br>
  <strong>Any Solution?</strong></p>