I need to get these values from the database. I have a Clients table and A Projects Table, The Project has a Foreign Key to the Client Table, Client_ID. So whe they add a Project, they will select a Client from the Spinner. The Client Spinner needs to be dynamic and be able to be loaded from a Database and Not an Xml file in the resources.
On Sep 29, 11:29 am, "E.D.I" <[EMAIL PROTECTED]> wrote: > u need to create an array in the resources ( values\arrays.xml ) with > the values u want the spinner to show > and create a SpinnerAdupter with this array.... > u can see an example in the samples comming with the android sdk > ( ApiDemos ) and from the spinner u can take > the indx of the item. > > On Sep 29, 5:40 pm, Lonzo1968 <[EMAIL PROTECTED]> wrote: > > > How do I setup a Spinner to have a Text Value and an Associated Id > > ( similar to what you would see in an HTML Select Tag ). I want to > > display a Client Name in the Spinner, but I want to save the Client_Id > > associated with the Name. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

