I am getting the text \'android.database.sqlite.SQLiteCursor@435b9ba0\' returned from a spinner.getSelectedItem().toString() call. I\'m not sure why. The spinner is tied to
Your code is working as you wrote it. Spinner
is an AdapterView
. The adapter you connected it to is a SimpleCursorAdapter
. This means that the selected item is a Cursor
(positioned at the item in the Cursor's result set corresponding with the user's choice). Cursor
has the default implementation of toString()
, which returns something like android.database.sqlite.SQLiteCursor@435b9ba0
.
Since you didn't tell us what you are trying to do, it is impossible to accurately advise you further. Whatever it is you want to save, however, needs to be pulled out of the Cursor
you get from getSelectedItem()
.