* 我的日志猫是 *
01-15 12:09:51.045: D/dalvikvm(14727): Debugger has detached; object registry had 1 entries
01-15 12:09:51.514: I/Database(14733): sqlite returned: error code = 14, msg = cannot open file at source line 25467
01-15 12:09:51.514: E/Database(14733): sqlite3_open_v2("/data/data/com.android.database/databases/mydb.db", &handle, 1, NULL) failed
01-15 12:09:51.614: D/asset(14733): Data exceeds UNCOMPRESS_DATA_MAX (3521536 vs 1048576)
01-15 12:09:51.614: D/AndroidRuntime(14733): Shutting down VM
01-15 12:09:51.614: W/dalvikvm(14733): threadid=1: thread exiting with uncaught exception (group=0x4001d800)
01-15 12:09:51.626: E/AndroidRuntime(14733): FATAL EXCEPTION: main
01-15 12:09:51.626: E/AndroidRuntime(14733): java.lang.Error: Error copying database
01-15 12:09:51.626: E/AndroidRuntime(14733): at com.android.database.DataBaseHelperSqlFromFile.createDataBase(DataBaseHelperSqlFromFile.java:55)
01-15 12:09:51.626: E/AndroidRuntime(14733): at com.android.database.Assets.onCreate(Assets.java:19)
01-15 12:09:51.626: E/AndroidRuntime(14733): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
01-15 12:09:51.626: E/AndroidRuntime(14733): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
01-15 12:09:51.626: E/AndroidRuntime(14733): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
01-15 12:09:51.626: E/AndroidRuntime(14733): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
01-15 12:09:51.626: E/AndroidRuntime(14733): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
01-15 12:09:51.626: E/AndroidRuntime(14733): at android.os.Handler.dispatchMessage(Handler.java:99)
01-15 12:09:51.626: E/AndroidRuntime(14733): at android.os.Looper.loop(Looper.java:123)
01-15 12:09:51.626: E/AndroidRuntime(14733): at android.app.ActivityThread.main(ActivityThread.java:4627)
01-15 12:09:51.626: E/AndroidRuntime(14733): at java.lang.reflect.Method.invokeNative(Native Method)
01-15 12:09:51.626: E/AndroidRuntime(14733): at java.lang.reflect.Method.invoke(Method.java:521)
01-15 12:09:51.626: E/AndroidRuntime(14733): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
01-15 12:09:51.626: E/AndroidRuntime(14733): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
01-15 12:09:51.626: E/AndroidRuntime(14733): at dalvik.system.NativeStart.main(Native Method)
01-15 12:09:51.626: W/ActivityManager(59): Force finishing activity com.android.database/.Assets
01-15 12:09:52.134: W/ActivityManager(59): Activity pause timeout for HistoryRecord{4508d118 com.android.database/.Assets}
01-15 12:09:57.744: D/dalvikvm(185): GC_EXPLICIT freed 151 objects / 11088 bytes in 103ms
01-15 12:10:02.285: W/ActivityManager(59): Activity destroy timeout for HistoryRecord{4508d118 com.android.database/.Assets}
01-15 12:10:05.225: D/dalvikvm(270): GC_EXPLICIT freed 46 objects / 2176 bytes in 158ms
答案 0 :(得分:1)
尝试将mp3扩展名添加到您保存在资源中的数据库文件名,例如/assets/db.mp3
答案 1 :(得分:0)
资源文件夹中的文件大小有限制。将目标文件移动到原始文件夹或阅读this post并将文件分成几个块。