i tried figure out whats going wrong myself via search missed else, think.
i have class doinbackground checking me, , return true or false onpostexecute. debug, found out code working, param sends through functions , line-by-line working ui not updating must.
here part of code:
class check extends asynctask<void,void,boolean> { @override protected boolean doinbackground(void... params) { //some code here if(tmp.equals(ssid)){ return true; } else { //little bit of code return false; } } @override protected void onpostexecute(boolean is) { super.onpostexecute(is); if(is){ button state = (button) findviewbyid(r.id.state); state.setbackgroundresource(r.drawable.shape_ringcnt); } else { button state = (button) findviewbyid(r.id.state); state.setbackgroundresource(r.drawable.shape_ringnrdy); } } }
i think code hided doing nothing ui of course, if else right can show hidden part.
i changed button imageview , thats it! dont know why doesnt work button, imageview , changing uri of resor
Comments
Post a Comment