>
> Mark thanks for the reply,
>
> To be more specific, here is a snippet from my spinner code:
>
> String[] array = {"Select", "Building", "Here"};
> Spinner s2 = (Spinner) findViewById(R.id.spinner2);
> ArrayAdapter<String> cadapter = new ArrayAdapter(this,
> android.R.layout.simple_spinner_item, array);
> cadapter.setDropDownViewResource
> (android.R.layout.simple_spinner_dropdown_item);
> s2.setAdapter(cadapter);
>
> my problem is replace array (to make it dynamic) with my 'title'
> column from my 'chart' table in my 'dbm' database. I know it's a
> simple line, but I can't seem to get it.
http://developer.android.com/guide/topics/ui/binding.html
The first code listing shows two spinners, one using an ArrayAdapter, one
using a SimpleCursorAdapter wrapping the result of a database query.
--
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 Available!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---