原代碼以下:java
places = getPlaceDatas(context, cursor);
cursor.close();get
應改成:it
try{io
places = getPlaceDatas(context, cursor);co
}finally{
cursor.close();錯誤
}context
否則會報以下錯誤:
java.lang.IllegalStateException: Process 3188 exceeded cursor quota 100, will kill it