getLoaderManager().initLoader() doesn't accept 'this' as argument though the class (ListFragment) implements LoaderManager.LoaderCallbacks

后端 未结 19 1659
无人共我
无人共我 2020-12-07 16:19

I\'m having trouble following a guide on using SQLite in Android. I\'m using a ListFragment instead of a ListActivity(as in the example), so I have

19条回答
  •  我在风中等你
    2020-12-07 17:06

    Try these 2 lines it will work

    android.support.v4.app.LoaderManager loaderManager = getSupportLoaderManager();
    
    loaderManager.initLoader(LOADER_ID, null,  this);
    

提交回复
热议问题