Initializing a Loader in an Activity

后端 未结 4 2045
北荒
北荒 2020-12-03 02:49

I am currently trying to learn how to use Loaders and am having trouble starting a Loader in my activity.

import android.support.v4.app.LoaderManager;
import         


        
4条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-03 03:21

    The third parameter for getLoaderManager().initLoader(0, null, this); should be a instance that implement interface LoaderManager.LoaderCallbacks So you should implement the interface first.

提交回复
热议问题