Skip to content

restartLoader issue #1

@Shivadumnawar

Description

@Shivadumnawar

Hello mam, I followed your code, it is very interesting and understanding. In MainActivity.java,
loaderManager.restartLoader(BOOK_LOADER_ID, bundle, this);
In the above code, for callback : this
It is showing error
Required type:
LoaderCallbacks

Provided:
MainActivity

reason: no instance(s) of type variable(s) D exist so that MainActivity conforms to LoaderCallbacks

This one line code is stopping me from execution of entire app.
Please feel free to respond. This is my favourite app as a beginner. Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions