How can I use setText() with the return value of v.getId()? I have some TextView fields. I would like to examine which was clicked, than call a function with the clicked TextView's ID as a parameter.
How can I do this? I have got some error messages.
An id is an int, not a TextView. I am still not clear what you are trying to do. Please show the code.
You need to call setText() on the TextView, not the TextView's id. If you get a View and are sure it is a TextView, you could do ((TextView)view).setText(...). This casts the view to a TextView, so you have access to the setText() method. But I am not sure what the id has to do with it...