07-12-2012 10:45 AM
IN SQLLIte, I have my database coming with my application.How can I read it? its in the same level as java classes under source pakage
String DB_NAME = "/jaww";
String dbLocation = "";
URI uri = URI.create(dbLocation + DB_NAME);
_db = DatabaseFactory.open(uri);
this gives me error.any helps?
07-12-2012 11:17 AM
Have you tried to remove "/" of the name?
07-12-2012 11:18 AM
07-12-2012 11:47 AM
In not sure, but you have to copy your DB to SDcard , then you can use it.
I
Sorry for my english.
07-12-2012 01:42 PM
Hi,
this link is really usful! You can go through all the steps and understand how the sqllite work.
http://docs.blackberry.com/en/developers/deliverab
if you are looking just to retrieve some tables from a data base, check this out
http://docs.blackberry.com/en/developers/deliverab
I hope that can help.
07-12-2012 01:47 PM
The SQLiteDemo that comes with your tooling demonstrates how to copy a SQL database that has been included in your resources to the SD Card. It must be on the SD Card to be used, it can not be used directly from the resources.