I have a WebService that lists all my users and brings users to the bank.
I have a class
Usuario {
int id;
String nome;
}
With its builders, gets and sets, etc.
And I can return all my users.
However, I want to throw all this in a ListView. I got it. But I managed using an ArrayAdapter of Strings and a list of String, that is, I just step the name.
How can I associate this name with your bank id to be able to recover screen changes using the OnItemClickListener () event, if I just pass the name?
Can you do this without having to display the id on the screen? (without using two textviews, etc.).
I want to use a ListView myself, just show the name. But I have to filter on the other screen by id using the putextra, etc.
My problem is to associate the ID with the Name, I've already tried creating a list of Users, but it does not go the way I want.
And now, what do I do?