Android Question Create a db or "insert" it?

LucaMs

Expert
Licensed User
Longtime User
I started reading manuals and examples for java, where I found out how to create db by code; I did not know and had no tools (now I know them).
Then, when I discovered the fantastic B4A, I created everything from code.

Now I have some doubts. I would like to think about the situations of any changes to the DB structure and the distribution, but if anyone thought in my place, I would do my little brain work less .

Thank for your reply, NJDude
 
Upvote 0

NJDude

Expert
Licensed User
Longtime User
There's no problem, if you use a DB editor and then your app requires a DB change you can manage that as well, it's just matter of checking the app version and creating an "update DB" routine, I think I've posted some examples, but you can just also search the forums for answers.
 
Upvote 0

LucaMs

Expert
Licensed User
Longtime User
There are other things to consider (and then I will be forced to think ).

By creating the db from code, I use some "constants" for the names of the fields. This must be done even if the db was created externally.

For now, I leave everything as it is, then I'll try to develop a simple app using both methods.


Thanks again for your reply.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…