黑莓SQLite数据库的创建:"文件系统未准备好" [英] BlackBerry SQLite database creation: "filesystem not ready"

查看:281
本文介绍了黑莓SQLite数据库的创建:"文件系统未准备好"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序从服务器获取数据并保存到SQLite数据库。这在9550(黑莓Storm 2 )模拟器工作正常,但是当我在其他任何运行这个模拟器它给了我这个错误:

My application takes data from a server and saves it to an SQLite database. This works fine in the 9550 (BlackBerry Storm 2) simulator, but when I run this in any other simulator it gives me this error:

文件系统未准备好

code片断:

URI myURI = URI.create("file:///store/MyDataBase.db");   

为什么会出现这种情况?

Why is this happening?

推荐答案

这可能是因为店面不上9550,您应该使用javax.microedition.io.file.FileSystemRegistry.listRoots装载的和可用的文件系统的根( ),以获得当前安装的文件系统的枚举。

It may be that store is not a mounted and available file system root on the 9550. You should use javax.microedition.io.file.FileSystemRegistry.listRoots() to get an Enumeration of currently mounted file systems.

这篇关于黑莓SQLite数据库的创建:"文件系统未准备好"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆