源码:
list =(Spinner) findViewById(R.id.list);
        db = new MySQLiteHelper(this,DB_NAME,null,VERSION).getReadableDatabase();
        String col[]={"_id","carname"};
        Cursor cs=db.query("clxx", col, null, null, null, null, null);
        SimpleCursorAdapter adpater=new SimpleCursorAdapter(this
                , android.R.layout.simple_dropdown_item_1line, cs,
                new String[]{"carname"},
                new int[]{android.R.id.text1});
        list.setAdapter(adpater);
我的spinner上的选项均从数据库表“clxx”的“carname”里读取然后后面程序需要要获得spinner上选中的内容
但是String s2=list.getSelectedItem().toString();的结果是如图所示:不知道怎么办了,那个“android.database.sqlite.sqlitecursor@...”的部分即是我想获得的内容...怎么把“android.database.sqlite.sqlitecursor@...”的真正内容String出来啊?