我创建一个数据库,我需要从数据库中读取的所有记录,但我的程序保持在这个声明崩溃:获取所有记录的SQLite的Android
newWord= db.getAllRecords();
我想有一个与getAllRecords问题( ),因为Eclipse表明没有错误。
public Cursor getAllRecords() {
db = dBHelper.getWritableDatabase();//obtains the writable database
return db.query(DATABASE_TABLE, new String[] { KEY_ROWID,KEY_WORD}, null, null, null, null, null);//the query used to obtain all records form the table
}
任何想法?
define crash?发布堆栈跟踪 – Woot4Moo
不只是我是一个阻碍:/我拼错创建字符串中的列名称 –