Display Album and Artist in listview with LoaderManager and CursorLoader

妖精的绣舞 提交于 2019-12-05 19:34:44

I think your mAdapter is null(I don't see where you initialized it, if you initialized it) and when you try to swap the cursor it throws that exception.

if you didn't initialized that AlbumAdapter reference then you should do it before you set the adapter:

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