how do i changing specific rect color on a canvas in android?

view story

http://stackoverflow.com – ive been trying to change the color of specific rects in an array of rects when i thouch the screen but it doesnt seem to be working, heres my code: public Paint blue = new Paint(); RandomColorGen rc; ArrayList<Integer> colors = RandomColorGen.ColorList(5); Random rand = new Random(); int columns = 50; int rows = 50; Rect square[][] = new Rect[rows][columns]; public boolean isTouched; public Canvas canvas; @Override protected void onDraw(Canvas canvas) { super.onDraw(canvas); this.canvas = canvas; for (int x = 0; x < rows; x++) { for (int y = 0; y < colu (HowTos)