tags:

views:

350

answers:

1

Team,

I would like to know how to display a List View or SPinner using key and value pairs in Android platform. For example take Contacts Contact has id, First Name, LastName, i would like to display First Name and Last Name in the list view or in the spinner,

id1, lastname1, firstname1 id2, lastname2, firstname2 id3, lastname3, firstname3

Once the user selected any value in the List view or spin list, I need to get the key value from the List view or spinner.

How to do it?

Any help or examples is greatly appreciated.

Thanks, Ramesh