Skip to content

Observation on placement of the database class #71

@joshua-kairu

Description

@joshua-kairu

Hi @SimonVT.

Props for this time-saving library. 👍

Just wanted to point out something small I came across and I didn't know where else to post it. 😁

When I put the database class in a folder different from the provider class, for example the database in database/MovieDatabase.java and the provider in provider/MovieProvider.java, that resulted in this error:

app/build/generated/source/apt/debug/com/joslittho/popmov/data/provider/generated/MoviesProvider.java:

35: error: cannot find symbol database = MoviesDatabase.getInstance(getContext());
                                         ^

The solution that worked for me was to keep provider and database files in the same directory.

Thanks.

All the best

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions