03-12-2012 04:51 AM - edited 03-12-2012 04:51 AM
I am working in app where the app reqiures to use sqlite.
The app requires an exsisting database.Now the problem is that how to import the existing DB onto SD card.
The DB so far created , how we able to store/import existing csv file (sqlite) on SD card and then fetch the data from it.
03-12-2012 05:02 AM
03-12-2012 05:11 AM
Yes i can read it.
But the problem is app creates db on SD card and where should i initially place my file to store it onto SD card so that it can be accessible by sqlite.
03-12-2012 06:40 AM
In my experience, an SQLite database that is readable on another platform, can be copied as a file to the SD Card and will be readable on the BlackBerry.
Have you tried to do this?
03-12-2012 08:01 AM
Yes i have tried this thing ...The database is readable but my issue is i have an existing database> now i needs to use this DB >for using it have to store this in SD card. Now how can we store it to sd card .As for every user sd card will be different.
Initially we can store the file in resoucers but how to move it to SD card.Any ideas?
03-12-2012 09:46 AM - edited 03-12-2012 09:47 AM
The SQLiteDemo application does that. The db is originally stored as a resource but is copied to SD Card. So look at the demo for help.