Android列‘_id’不存在吗?
String[] from = new String[] { NotesDbAdapter.KEY_TITLE };int[] to = new int[] { R.id.text1 };
SimpleCursorAdapter notes = new SimpleCursorAdapter(this,R.layout.notes_row, c, from, to);CREATE TABLE android_metadata (locale TEXT);CREATE TABLE notes (_id integer primary key autoincrement, title textnot null, body text not null);
String[] from = new String[] { "x" };int[] to = new int[] { R.id.x };SimpleCursorAdapter adapter = null;try{
adapter = new SimpleCursorAdapter(this, R.layout.circle_row, cursor, from, to);}catch (RuntimeException e){
Log.e("Circle", e.toString(), e);}Log.e()
java.lang.IllegalArgumentException:列‘_id’不存在
猛跑小猪
慕斯王
相关分类