I am trying to populate a spinner from a database and I get this exception:
ERROR/AndroidRuntime(1623): java.lang.IllegalStateException: android.widget.Spinner is not a view that can be bounds by this SimpleCursorAdapter Any example around on how to populate a spinner from a database? Thanks Fred On Fri, Mar 21, 2008 at 8:17 PM, Fred Janon <[EMAIL PROTECTED]> wrote: > Thanks Zach! I'll check the examples out. > > > On 3/21/08, Zach Hobbs <[EMAIL PROTECTED]> wrote: > > > > > > If you're pulling the data from a database you could use a > > SimpleCursorAdapter, if you have the data in a List or Array you could > > use a > > SimpleArrayAdapter. There are examples of both in the ApiDemos. > > > > -- > > > > Zach Hobbs > > HelloAndroid.com > > Android OS news, tutorials, downloads > > > > > > On Friday 21 March 2008 05:46:16 Fred Janon wrote: > > > Hi, > > > > > > I checked the Spinner example, the options gets loaded from a resource > > > file. I need to load the spinner values dynamically but cannot figure > > out > > > which Adapter to use. I don't think SpinnerAdapter would work... > > > > > > Any suggestion? > > > > > > Thanks > > > > > > Fred > > > > > > > > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

