updates & apk

jndaniels1

Member
Licensed User
Longtime User
Hi b4a group.
I got a question; more to just make sure that I am approaching my project correctly. I use SQlite Database that gets newly added entries on a weekly basis... In the future I plan to add a update routine to just download the new updates. But for now, I want to know if I re-recate my app, with the new sql lite db, and it gets updated on the devices it does indeed gets replaced. My Apps moves a copy to the databaes to an external storage
i.e File.DirDefaultExternal

I want to avoid database data getting out of sync.

Make any sense??

Thanks for the awesome software IDE . Using it for 1 month and I am 99% complete on my 1st project. Thanks Erel!!

Cheers
.JND.
 

jndaniels1

Member
Licensed User
Longtime User
You should first check if an existing db exists and only if it doesn't exist you should copy the packed db. Assuming that you implemented it this way, the existing db will not be replaced.

Yes I did do it that way - I thought it wouldn't replace it. I can always come up with a checksum or version table to compare with.

Thanks for the clarification!

.JND.
 
Upvote 0
Top