schematic
schematic copied to clipboard
Observation on placement of the database class
Hi @SimonVT.
Props for this time-saving library. :+1:
Just wanted to point out something small I came across and I didn't know where else to post it. :grin:
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