title: How append to textview & remove last letter from textview?
body: <p>I want to add text in textview in android, but when the backspace is pressed the last character should be removed.</p>
  
  <ul>
  <li>I am <strong>using softkeyboard</strong>.</li>
  <li>I am <strong>creating textview dynamically</strong>.</li>
  <li>and <strong>update textview when key of soft-keyboard is dispatched/pressed</strong>.</li>
  </ul>
  
  <p>This is my code:</p>
  
  <pre><code>@Override
  public boolean dispatchKeyEvent(KeyEvent KEvent){
       keyaction = KEvent.getAction();
  
      if(keyaction == KeyEvent.ACTION_DOWN){
           keycode = KEvent.getKeyCode();
           keyunicode = KEvent.getUnicodeChar(KEvent.getMetaState() );
           character = (char) keyunicode;
          textView.setText(""+character);
      }
      return super.dispatchKeyEvent(KEvent);
  }
  </code></pre>
  
  <p>Every time I press a key, textview is set with a new character and <strong>previous one gets overridden.</strong>
  <strong>Also if backspace is pressed than last character appended get deleted</strong> </p>
  
  <p>Is there any way to do this to textview?</p>