我正在尝试在以下位置编译示例:http: //developer.android.com/reference/android/content/AsyncTaskLoader.html
在 onCreateLoader 方法中:
@Override public Loader<List<AppEntry>> onCreateLoader(int id, Bundle args) {
// This is called when a new Loader needs to be created. This
// sample only has one Loader with no arguments, so it is simple.
return new AppListLoader(getActivity());
}
我不断收到以下编译错误:
required: android.support.v4.content.Loader<java.util.List<com.example.AppEntry>>
return new AppListLoader(getActivity());
我错过了什么吗?