打开SD卡上的数据库报错【100分啊】,该如何解决

打开SD卡上的数据库报错【100分啊】
唉,为啥那次运行这行就直接抛异常啊
database = SQLiteDatabase.openDatabase(“/mnt/sdcard/dic/dic.db”, null, SQLiteDatabase.OPEN_READWRITE );
很是费解,我是想直接打开/mnt/sdcard/dic/dic.db目录下的数据库文件,权限已经加了,dic.db是通过
if (!(new File(“/mnt/sdcard/dic/dic.db”)).exists()) {
// 获得封装dic.db文件的InputStream对象
InputStream is = this.getResources().openRawResource(R.raw.dic);
FileOutputStream fos = new FileOutputStream(“/mnt/sdcard/dic/dic.db”);
byte[] buffer = new byte[8192];
int count = 0;
// 开始复制dic.db文件
while ((count = is.read(buffer)) > 0) {
fos.write(buffer, 0, count);
}
fos.close();
is.close();
}拷贝到SD卡里的啊

------解决方案--------------------
哪一步抛异常了啊
------解决方案--------------------
到return null是说明出异常了,把异常打印出来看下是什么
------解决方案--------------------
每个应用都拥有自己的sqlite文件,所以调用的时候只需给定db的name就可以了。
------解决方案--------------------
fos.flush()加最后看看;