how to use Android Spinner with text and value?

Posted by UMMA on Stack Overflow See other posts from Stack Overflow or by UMMA
Published on 2010-05-04T07:56:27Z Indexed on 2010/05/10 6:14 UTC
Read the original article Hit count: 247

Filed under:
|

dear friends,

i want to use Android spinner with following data. Spinner will display only text data not code.

code , text

1 , a
2, b
3,c

. . . etc

i have stored above comma seperated data in same activity class (Hard coded form) now if user selects "a" from the dropdown then it should get its code rather then text.

can any one guide me how to achieve this?

any help would be appriciated.

© Stack Overflow or respective owner

Related posts about android

Related posts about activity