07-29-2010 10:06 PM
I am getting started with developing a sqlite application. I have the source code that is on BlackBerry.com. I have built the code, requested the sign in key.
I am trying to go to the SDCard and see whether the file has been created or not. Bascially, I want to browse the simulated SDCard.
On the simulator I have clicked Simulate->Change SDCard and provided the name of a file and path. I can see a .dmp file but when I click on it, it opens in Visual Studio.
Thanks a lot.
Solved! Go to Solution.
07-29-2010 10:38 PM
When you select Simulate->Change SDCard you should select "Add Directory" and then select a new empty directory on your drive. This is where all of the files that you create will go from the simulated app. Keep in mind that you want to read these same files back you need to select the same directory the next time. You could create a runtime confirmation and set the directory once. I've enclosed a picture to show you where you can find that.
Hope that helps.
07-29-2010 11:27 PM
all those solutions worked. i can now view the database by going to the media folder on the simulator and also the folder on my pc. thanks a lot for your help.
i am trying to create a database, open it and then insert data into the database.
URI myURI = URI.create("file:///SDCard/Databases/SQLite_Guide/
d = DatabaseFactory.create(myURI);
Statement st = d.createStatement("INSERT INTO People(Name,Age) " +
however, i do not see anything inside the database (when i open it using firefox sqlite manager).
07-30-2010 05:06 AM
Have you single step debugged through it to make sure there are no Exceptions?
Sorry don't know the answer to your question, but since you have the answer to the initial question about SD Card, can i suggest that you mark one of the answers as the solution, and start a new Thread with your new problem?