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
Contributor
Posts: 41
Registered: ‎11-15-2012
My Device: Curve 9320
My Carrier: Optimus

Database error to create

Hi,

 

I'm create a database in simulator and run perfectly.

But when I run in phone appeare error "File system not ready".

 

My code is:

 

URI myURI = URI.create("file:///store/home/user/nameapp/" +
"DBName.db");

d = DatabaseFactory.open(myURI);

 

cumps

Developer
Posts: 17,012
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Database error to create

you can try this:
http://supportforums.blackberry.com/t5/Java-Development/Detect-system-availability-on-startup/ta-p/4...

most likely your app is starting and the file system is not ready yet
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Contributor
Posts: 41
Registered: ‎11-15-2012
My Device: Curve 9320
My Carrier: Optimus

Re: Database error to create

But I create database below to create a MainScreen Smiley Frustrated