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.
It isn't clear what you want to do. Could you describe more detail about what you need, provide some sample code (please read UseCodeTags before posting code) and show the errors you are getting?
I have a lot of TextViews and I would like to know which was clicked. I am using onclicklistener, but I would like to call a function with the Id of the clicked textview and then use a setText().
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...