【发布时间】:2014-02-24 11:12:59
【问题描述】:
我的问题是sp1.getSelectedItem().toString(); 仅将数据保存为android.database.SQLite.cursor@blablabla ...它没有得到我声明的字符串...我该怎么做?
这是我的光标代码[填充微调器]
cursor = mySQLiteAdapter.queueSchoolAll();
cursor.requery();
String[] from1 = new String[]{Database.KSCHOOLCODE};
int[] to1 = new int[]{R.id.rt1};
cursorAdapter =
new SimpleCursorAdapter(this, R.layout.a_row_school, cursor, from1, to1);
sp1.setAdapter(cursorAdapter);
这是保存数据的按钮代码:
String data1 = (String)sp1.getSelectedItem().toString();
mySQLiteAdapter.insertGrade(data1);
【问题讨论】: