Android's view not refreshing -


in thread when receive internet want notify user , like

new thread(new runnable(...    ...    log.d("tag", "going redraw");    findviewbyid(r.id.view).setvisibility(view.visible);    findviewbyid(r.id.view).refreshdrawablestate();  // tried    findviewbyid(r.id.view).invalidate();  // , , separately  ).start(); 

i always see log, , sometimes see view shown. have no idea what's going on

i have tried include findviewbyid in runonuithread didn't job either. tip on ?

do not modify ui in thread other ui thread! either use handler or activity.runonuithread()


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -