Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Highlighted
New Developer
Posts: 6
Registered: ‎03-25-2009
My Device: Not Specified
Accepted Solution

importing data into RecordStore

Sorry for a likely newbie question, but I want to create an app with a prepopulated database and was wondering if I should include a CSV file with my app then create a new RecordStore by parsing that data.

 

Also, can I then delete the CSVfile in order to save space?

 

My database is big (near 500k) and I need to be able to do SQL-ish searches on it.

 

From what I understand, there's no way to bundle data with a recordstore.

Developer
Posts: 507
Registered: ‎07-15-2008
My Device: Not Specified

Re: importing data into RecordStore

[ Edited ]

Compile a different cod file with csv file inside (different project in JDE).

 

It will be a different (container) cod file.

 

For example let's it name will be: container.cod

 

In your main application try to open file from containier.cod via the following url string:

 

cod://container/myfile.csv

 

myfile.csv - is file name of your csv file included in container.cod file

 

It is not documented approach but it should work.

 

When the file is loaded and processed you can delete container.cod file from the device programatically.


Message Edited by rafo on 09-05-2009 10:39 PM
----------------
if your issue solved set "Solution" mark at the relevant post