As a newbie I wonder what the right way to do this is: I've watched several tutorials all create a database but then use CREATE TABLE x IF NOT EXISTS
in a way that will only run on the user's device.
I tried to find out if that's the "right" way to do it - and why we apparently avoid just creating and deploying a nicely set up database complete with all expected tables - but have found nothing relevant so far (probably because I still lack the vocabulary to better search for it...).
It would seem to me that this might introduce unnecessary errors on the user's device and I can't see any advantages!
Looking forward to your insights!
EDIT:
I've been pointed towards Room for database handling, which I will look into! But my question is still unanswered. Rephrased:
When/Where are db tables created (beforehand/during build/on user's device)? And what's the reasoning behind the decision?