黑莓中的 SQLite 数据库创建错误
我正在尝试使用 BlackBerry IDE 创建 SQLite DB。首先,我使用模拟器将 SD 卡安装到 PC 中的一个文件夹中。
URI myURI = URI.create("file:///SDCard/Databases/" + "Test.db");
d = DatabaseFactory.create(myURI);
d.close();
运行代码后我得到异常
路径不包含正确的根列表。有关详细信息,请参阅 FileSystemRegistry 类
有人知道问题是什么吗?
I am trying to create an SQLite DB using BlackBerry IDE. First I mount sdcard to a folder in my PC using simulator.
URI myURI = URI.create("file:///SDCard/Databases/" + "Test.db");
d = DatabaseFactory.create(myURI);
d.close();
After I run the code I get the exception
Path does not contains a proper root list. See FileSystemRegistry class for details
Anybody know what is the issue?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以尝试以下代码而不进行任何更改吗
Can you try the below code without any changes please
我怀疑您在测试应用程序时插入了 USB 电缆。如果是这种情况,只需断开连接并重试。在 BB 上,如果连接了 USB 电缆,则 SDCard 将不可用。
I suspect a USB cable is inserted while you are testing the app. If this is the case just disconnect and try again. On BB if USB cable is attached then SDCard becomes unavailable.