onclickView not working...runuithread solution????
Posted
by nivedita
on Stack Overflow
See other posts from Stack Overflow
or by nivedita
Published on 2010-06-17T20:08:45Z
Indexed on
2010/06/17
20:13 UTC
Read the original article
Hit count: 296
android
hi..i m new to android....i m stuck at a point would really appreciate if ne1 cn help pls.. i m developing an pp which has grid of colored rectangles..made changing the background of textView..dere are 3 buttons which cause the backgroundcolor to change according to some algo..n 2 textview which show the current sts f game
now the problem is i hv button example (one f the three buttons) which chnges
example.setOnClickListener (new Button.OnClickListener() {public void onClick(View v) { status_val.setText("true board-example working"); level_1_true(); } } );
level_1_true();-sets background color f rectangles dis above code results in "activity not responding"..ie onclick listner does not change the view. someone suggested me runonuithread..but i cnt get how n what to do.. how do i change the d view of screen by clicking the button???
© Stack Overflow or respective owner