I am following this codelab and one of the suggested best practices for retrieving data from a database was to use a LiveData
wrapper for my DAO
return values (step 6 in the codelab).
But in my app, I am reading an existing .sqlite
file only once at the start of the activity. Thus using this wrapper should be unnecessary, am I correct?
So is it acceptable (in terms of best practices) to make my DAO
return a simple object instead of using the LiveData
construct around it?