Resource not found TextView

Solution 1:

mRow is an integer. When you call setText(mRow) on line 75, it thinks that you are trying to set the text with a String resource with ID = the value of mRow.

Instead, do:

tRow.setText(Integer.toString(mRow));

Solution 2:

You should always convert other values to string before setting it to textview, like

 txtX.setText(Integer.toString(intVal));