Hello, my app get json file, read two field(name and id) , and add them to the list view(in doinBackground).
In onPostExecute i add the listview to arrayadapter. I present only one of the variables(name). When user click on the name(setOnItemClickListener), i need to get id of the name.
My problem, i don't know how can i present only one field from the listview(and where i should do it, in AssyncTask or in other place) and how can i get id of the name when user click and choose name.
How can i do it? thank you for your help
In onPostExecute i add the listview to arrayadapter. I present only one of the variables(name). When user click on the name(setOnItemClickListener), i need to get id of the name.
My problem, i don't know how can i present only one field from the listview(and where i should do it, in AssyncTask or in other place) and how can i get id of the name when user click and choose name.
How can i do it? thank you for your help