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

后端 未结 19 1574
无人共我
无人共我 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:14

    If you use API 29, instead of getLoaderManager use:

    getSupportLoaderManager().initLoader(id, null, this);
    
    0 讨论(0)
提交回复
热议问题