我使用了这段代码:
Cursor c = cr.query(message, null, null, null, null);
startManagingCursor(c);
But startManagingCursor(c)
是一个已弃用的方法。我怎样才能更换它?
此方法在 API 级别 11 中已弃用。使用新的游标加载器 http://developer.android.com/reference/android/content/CursorLoader.html与 一起上课加载管理器 http://developer.android.com/reference/android/app/LoaderManager.html反而;这也可以通过 Android 兼容包在旧平台上使用。
查看本教程系列 http://www.androiddesignpatterns.com/2012/07/loaders-and-loadermanager-background.html.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)