contentprovider的学习实例总结
22???????????????????????+ cursor.getString(cursor.getColumnIndex(RuiXin.SEX)), 23???????????????????????Toast.LENGTH_SHORT).show(); 24???????????????????} 25???????????????????startManagingCursor(cursor);? //查找后关闭游标 26????????????} 27????????} 运行此程序就能实现共享数据查询了!
注:新建的程序中的manifest.xml中不需要对provider进行注册,直接运行就行,否则会报错!