Error on Android Handler update interface -


handler handler = new handler() {     public void handlemessage(message msg) {         super.handlemessage(msg);         returnshow.settext(smsg);//returnshow edittext         returnshow.setselection(returnshow.length());     } };  class readthread extends thread {     public void run() {         smsg = "...";         handler.sendmessage(handler.obtainmessage());     } } 

everytime run, settext line have error, can't figure out why?

thanks help.

enter image description here

make sure returnshow initialized before setting it..

something like..

returnshow = (edittext)findviewbyid(r.id.edittext); 

Comments

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -