A adastra Member Licensed User Longtime User Jul 25, 2014 #1 hi, i want that when i reinstall app my database file should be replaced, now my sq lite database file does not replace, i want to replace it
hi, i want that when i reinstall app my database file should be replaced, now my sq lite database file does not replace, i want to replace it
S sorex Expert Licensed User Longtime User Jul 25, 2014 #2 it is just a file. I think it's best that you add a version field to it and when it doesn't match delete the sql file and place the new one. Upvote 0
it is just a file. I think it's best that you add a version field to it and when it doesn't match delete the sql file and place the new one.
A adastra Member Licensed User Longtime User Jul 25, 2014 #3 thanks for reply you mean to say i have to code for that, can you give me some sample code Upvote 0
S sorex Expert Licensed User Longtime User Jul 25, 2014 #4 yes, unfortunately B4A doesn't know what you are planning to do so it won't write all the code for you here's an example found by the search > http://www.b4x.com/android/forum/threads/replacing-db-from-internet-gives-error.17354/#post-156480 Upvote 0
yes, unfortunately B4A doesn't know what you are planning to do so it won't write all the code for you here's an example found by the search > http://www.b4x.com/android/forum/threads/replacing-db-from-internet-gives-error.17354/#post-156480