获取日历应用程序时出错
我正在关注以下链接 http://lovingandroid.blogspot.com/2011/08/retriving -events-from-calendar.html 但在 calCursor.moveToFirst();
处出现异常 我正在模拟器上工作,这个问题的解决方案是什么???
I am following the following link
http://lovingandroid.blogspot.com/2011/08/retrieving-events-from-calendar.html
but getting exception at calCursor.moveToFirst();
I am working on emulator, What is solution of this???
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你遇到了什么异常?是不是空指针异常?如果是,您可能需要在调用其 moveToFirst() 方法之前先检查 calCursor 是否不为 null。
What exception did you get? Is it a null pointer exception? If yes, you might need to check calCursor is not null first before invoking its moveToFirst() method.
也许您的光标没有数据
用途,例如
Maybe your cursor have no data
use like