2
我正在關注此鏈接以打開與數據庫的連接。但是,當我嘗試打開它時,它會拋出一個異常,指出errorCopyingDatabase。我的數據庫大小大約爲20MB。是否由於它沒有從Assets文件夾複製到內存或其他問題的大小。我相信我的代碼很好,我也仔細檢查了所有的路徑(一切似乎都很好)。我得到以下異常:errorCopyingDatabase從資產文件夾到內存
12-14 04:44:45.471: E/AndroidRuntime(512): java.lang.Error: ErrorCopyingDataBase
12-14 04:44:45.471: E/AndroidRuntime(512): at com.bondsms.db.DBHelper.createDataBase(DBHelper.java:42)
12-14 04:44:45.471: E/AndroidRuntime(512): at com.bondsms.db.DBAdapter.createDatabase(DBAdapter.java:37)
12-14 04:44:45.471: E/AndroidRuntime(512): at com.bondsms.BSGroupsActivity.loadAllGroupsFromDB(BSGroupsActivity.java:98)
12-14 04:44:45.471: E/AndroidRuntime(512): at com.bondsms.BSGroupsActivity.onCreate(BSGroupsActivity.java:55)
12-14 04:44:45.471: E/AndroidRuntime(512): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
12-14 04:44:45.471: E/AndroidRuntime(512): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
12-14 04:44:45.471: E/AndroidRuntime(512): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
12-14 04:44:45.471: E/AndroidRuntime(512): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
12-14 04:44:45.471: E/AndroidRuntime(512): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
12-14 04:44:45.471: E/AndroidRuntime(512): at android.os.Handler.dispatchMessage(Handler.java:99)
12-14 04:44:45.471: E/AndroidRuntime(512): at android.os.Looper.loop(Looper.java:123)
12-14 04:44:45.471: E/AndroidRuntime(512): at android.app.ActivityThread.main(ActivityThread.java:4627)
12-14 04:44:45.471: E/AndroidRuntime(512): at java.lang.reflect.Method.invokeNative(Native Method)
12-14 04:44:45.471: E/AndroidRuntime(512): at java.lang.reflect.Method.invoke(Method.java:521)
12-14 04:44:45.471: E/AndroidRuntime(512): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
12-14 04:44:45.471: E/AndroidRuntime(512): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
12-14 04:44:45.471: E/AndroidRuntime(512): at dalvik.system.NativeStart.main(Native Method)