Implementing LoaderCallbacks in Activity Android

社会主义新天地 提交于 2019-11-29 08:48:47

Since you're using AppCompatActivity and calling getSupportLoaderManager(), i suppose you would like to use the support library implementation of Loader as well.

If so, change the following of your import statements:

import android.app.LoaderManager;
import android.content.CursorLoader;
import android.content.Loader;

To this:

import android.support.v4.app.LoaderManager;
import android.support.v4.content.CursorLoader;
import android.support.v4.content.Loader;

If you do not, call getLoaderManager() instead of getSupportLoaderManager().

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