Replacement for SimpleCursorAdapter?

安稳与你 提交于 2019-12-03 07:27:12
Eric Levine

Please note that the deprecation does not apply to all ofSimpleCursorAdapter, just one of the constructors.

If you wish to use the Loader from API 11, you can pull in the compatibility library (see: http://developer.android.com/sdk/compatibility-library.html). This provides a backport that is compatible with API level 4 or higher devices.

EDIT :

If you are still facing the errors after using compatibility library, then you just need to replace

import android.widget.SimpleCursorAdapter;

with

import android.support.v4.widget.SimpleCursorAdapter;
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!