i need hints for SQLite; I receive in SOAP or REST format a large XML (betwen 200 and 5000 entries depending on the user, with around 30 columns) that i parse to a local SQLite db.
This operation takes too much time for the users (from 10 seconds up to 2 minutes), so i wanted to know :
Is it possible under a window server (Delphi XE2 home made server) to create the SQLite database file and send the whole file to the mobile; Then on mobile side, replace the database file with the new one (data are not modified on client side, i can replace file with no regrets ^^ ) ?
On a rooted mobile, i just can’t find the SQLite database file (searched for it with esFileExplorer, /data, /dbdata, /sdcard/data… nowhere) so i just don’t know where i will have to put that file in the end…
Yes, its possible.
You can download the database having latest data & replace it with current database. Find an example here of “How to use existing data base“, link for sample project is also there.
EDIT:
You need to modify it according to your needs.
You can delete your existing database by using
context.deleteDatabase(DATABASE_NAME);