如何处理CursorAdapter和切换联系人API?
有人尝试过将 CursorAdapter
与旧的和新的 api 一起使用吗?
您有此类解决方案的一些代码示例吗?
Does anyone tried to use CursorAdapter
with old and new api?
Do you have some code examples of such solutions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Android SDK 中没有
ContactAdapter
类,因此我不确定您在这里指的是什么。这里是一个示例,显示使用条件类加载来填充基于旧版或新版 API 的
SimpleCursorAdapter
,具体取决于您运行的 Android 版本。There is no
ContactAdapter
class in the Android SDK, so I am uncertain what you are referring to here.Here is an example that shows using conditional class loading to populate a
SimpleCursorAdapter
based for either the old or new API depending on the version of Android that you are running.