Re: [android-developers] Trying to get the value of the selected spinner item

2015-04-02 Thread Daniel Chacon
Found a solution and seems to work.. catid.setName("catid"); String vid = categoryItems[spinCat.getSelectedItemPosition()].CatId; catid.setValue(vid); On Thu, Apr 2, 2015 at 4:03 PM, Dan Cha wrote: > So I have 2 dropdowns in my app, once with list of categori

[android-developers] Trying to get the value of the selected spinner item

2015-04-02 Thread Dan Cha
So I have 2 dropdowns in my app, once with list of categories and one with list of users. My custom arrayadapter used to bind to the lists contains id name For form submission I need to send the id to the database not the name.. But I cant seem to figure out how to get the value instead of t