我菜固我在

博客园 首页 新随笔 联系 订阅 管理

原代码如下:

places = getPlaceDatas(context, cursor);
cursor.close();

应改为:

try{

places = getPlaceDatas(context, cursor);

}finally{
cursor.close();

}

不然会报如下错误:

 java.lang.IllegalStateException: Process 3188 exceeded cursor quota 100will kill it

posted on 2013-10-17 15:08  大侠(cer)  阅读(4207)  评论(1编辑  收藏  举报