我是android新手,我正在开发一个警报应用程序我在设置警报时发现了这个错误
Finalizing a Cursor that has not been deactivated or closed.
database = /data/data/com.time/databases/Salarm.db, table = ASTimer,
query = SELECT _id, description, altime, status, frequency, prealarm FROM ASTimer WHERE status='ON'
代码 :
public Cursor getAllAlarmON()
{
Log.i("alarm","Fetching records from the database...");
Cursor cursor= db.query(tableName, new String[]{"_id","description","altime","status","frequency","prealarm"}, "status='ON'", null, null, null, null);
return cursor;