不知道为什么,明明插进去了,但是就是查不到。既然cursor不为null了,count还是为0,getstring(index)也报错。求大神帮忙
解决方案 »
- 求助,eclipse下启动Android虚拟机无法运行项目,并且不断启动新AVD
- android webview加载本地html(jquery框架)问题
- 【Android】: TextView控件:setWith,getWith,setMaxWith不起作用
- ★★★ android、linux、wince超多技术资源0分共享
- 如何把android开发环境从2.2更新到2.3?
- 代码实现删除系统应用
- android+http+json 数据交互
- 仿微信聊天界面,多个语音消息如何实现同一时间只播放一条消息
- 设置控件的选择状态
- 使用Volley闪退
- 为什么有R.java文件,也更新了,再Activity类还是提示找不到R下的各种id呢?
- sdk Manager无法启动虚拟机
mCursor = managedQuery(mUri, PROJECTION, null, null, null);//查询
重新
Uri mUri = .....;
Since: API Level 1
Inserts a row into a table at the given URL. If the content provider supports transactions the insertion will be atomic.Parameters
url The URL of the table to insert into.
values The initial values for the newly inserted row. The key is the column name for the field. Passing an empty ContentValues will create an empty row. Returns
the URL of the newly created row.
确实是的
uri = ContentUris.withAppendedId(NOTEBOOK_URI, rowId)
rowid是db.insert返回的数据行index。
最后生成的是content://XXX/note/10。
没有错误吧。。