I have a spinner widget and I want to populate some data when user clicks on one of the items from spinner. So I have the position number like 0,1,2,3... for spinner items.
Now I have a table which have three fields as
_id cid relatedname
1 1 A
2 1 B
3 2 C
4 2 D
5 2 E
I want when a user clicks position 1 from spinner then it will check for cid and all the relatedname will be displayed whose cid is 1.
How to do this ?