onclickView not working...runuithread solution????
- by nivedita
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???