use this code for setting the text in your textview
runOnUiThread(new Runnable() {
@Override
public void run() {
showchar.setText(letArray[i]);
}
});