As you appear to be using a single text view in your spinner, consider using some standard layouts and views. Instead of R.layout.profile_list, try using android.R.layout.simple_list_item_1, and instead of your R.id.tvDBViewRow, replace that with android.R.id.text1. My guess is that you're getting hung up on where these resources get specified and how. Android provides a bunch of standard ones that you can easily use. To see the actual specification of the layout, go to the Android SDK directory, look under the appropriate platform directory for your target build, then under data/ res/layout. There you will find simple_list_item_1.xml which is a layout with a single TextView in it, with an ID of text1. Anyway, try that and see if you get better results.
- dave On Mar 12, 10:22 am, Mark Murphy <mmur...@commonsware.com> wrote: > On Sat, Mar 12, 2011 at 10:10 AM, Brad Stintson <geek.bin...@gmail.com> wrote: > > How to populate spinner from database? > > Following code is not working in my case. > > Please consider defining "not working". > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy > > _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9 > Available! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en