cursor 未关闭
Cursor cursor = ...;
try {
if (cursor.moveToFirst())
return xxx;
else
return null;
} finally {
cursor.close();
}
cursor 未关闭
Cursor cursor = ...;
try {
if (cursor.moveToFirst())
return xxx;
else
return null;
} finally {
cursor.close();
}