Im trying to fill a spinner with data from a table.  That part works
fine.  What i cant figure out is how to use the selection made
through
the spinner.  if i use :
 String someString = (String) classSpin.getSelectedItem().toString();
i get some sort of SQL reference.  Am i missing a step?  Im new to
both java and android so i hope this is something very obvious im
missing.
heres some of my code for the spinner:
Cursor classCur = db.getClasses();
startManagingCursor(classCur);
from = new String[]{DBAdapterStats2.KEY_CLASS};
to = new int[]{android.R.id.text1};
SimpleCursorAdapter classAdapter = new SimpleCursorAdapter(this,
android.R.layout.simple_spinner_item, classCur, from, to);
classAdapter.setDropDownViewResource
(android.R.layout.simple_spinner_dropdown_item);
classSpin.setAdapter(classAdapter);

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to