解决方案 »
- android编译遇到的问题
- android对话框宽度问题
- 求 《Android编程典型实例与项目开发案例》电子版
- 【Android】: TextView控件:setWith,getWith,setMaxWith不起作用
- Android系统如何获取手机分辨率
- android客户端为什么不能发送消息给服务器
- Android4.2 scrollview 手势bug问题解决
- 算法?思路还是什么,一个二维坐标转换的问题求解
- onactivityresult方法里面的数为什么其他方法用不了
- 小米miui系统调用系统裁剪图片camera.action.CROP,无法返回结果求解!!!
- 为ViewFlipper 添加动画报错,Unknown interpolator name: set
- 求教 地图定位信息怎么回传给activity
count = cursor.getCount();//返回总记录数
Log.i(TAG,"coming");
}
改为if(!cursor.isAfterLast()){ //判断是否有值
count = cursor.getCount();//返回总记录数
Log.i(TAG,"coming");
}
...
if(cursor.moveToFirst()){
count = cursor.getCount();
}
cursor.close();
return count > 0;