error: Only the original thread that created a view hierarchy can touch its views
In your run() method:
Message msg = new Message();String textTochange = "text";msg.obj = textTochange;mHandler.sendMessage(msg);
Create the mHandler in your UI thread;
Handler mHandler = new Handler() { @Override public void handleMessage(Message msg) { String text = (String)msg.obj; //call setText here }};