05-22-2012 02:10 AM
i need to change the default database location from the blackberry webworks source code
Currently i am using a BB OS 5 sqlite database which uses gears and it automatically gets created in some directory location.
I want to modify this location to my needs. Which particular file do i need to modify?
05-22-2012 05:44 AM
05-22-2012 05:59 AM
My database gets created here C:\sdcard\BlackBerry\system\appdata\rim\gears\VXNh
I donot specify this location.... I just Specify that it gets stored in the C:\sdcard
05-25-2012 08:44 AM - edited 05-25-2012 08:59 AM
> I just Specify that it gets stored in the C:\sdcard
How do you do that? Afaik there's no way to specify the location.
 whoops, you said Gears. The location cannot be influenced, read this:
Why would you need to do that anyway? What's the logic behind it? Why do you actually care about the location?
If you want data to be shared between different apps, then SQLite is not really the way. You can only create empty databases and populate them within the app.
And BlackBerry devices do not have the concept of a "C: drive".
05-25-2012 09:32 AM
Actually the logic is that i have a service which runs in the background and makes entry in the database.
While the Application queries this database to get the values.
05-25-2012 11:23 AM
Can't you pass a reference to the database from one to the other then? Like create it in the app, and pass the instance to the constructor of the background service? Or vice versa: create the db in the background service, and find a way to pass a reference back to the app.
Or even better yet: allow access to database to background service only, and think of a way to do queries on it there also (SOA approach.) No idea how feasible that is in your situation...