Android Question Copy huge file to DirInternal, failed

watesoft

Active Member
Licensed User
Longtime User
I copy files from DirAssets to DirInternal, small files succeeded,but one huge file(size about 120M) failed,sqlite can not find this huge file in DirInternal.why? If I copy it to DirExternalRoot or other Dir,it is ok.
Now I want to place this huge file in DirInternal,I don't know what to do.
 

watesoft

Active Member
Licensed User
Longtime User
Did you get any error from File.Copy?
No error from File.Copy,But when I connect to the database error appeared:

Copying updated assets files (1134)
** Service (starter) Create **
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (egw) Create, isFirst = true **
** Activity (egw) Resume **
Error occurred on line: 254 (EGW)
android.database.sqlite.SQLiteException: no such table: EGW (Sqlite code 1): , while compiling: SELECT Text FROM EGW WHERE SUBSTR(Num,1,2)='YJ' AND SUBSTR(Num,12,2)='BN', (OS error - 2:No such file or directory)
at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:897)
at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:508)
at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:588)
at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:63)
at android.database.sqlite.SQLiteQuery.<init>(SQLiteQuery.java:37)
at android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:44)
at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1344)
at android.database.sqlite.SQLiteDatabase.rawQuery(SQLiteDatabase.java:1278)
at anywheresoftware.b4a.sql.SQL.ExecQuery2(SQL.java:167)
at anywheresoftware.b4a.sql.SQL.ExecQuery(SQL.java:155)
at SDA.BibleTools.egw._pan_father_layout(egw.java:845)
at SDA.BibleTools.egw._img_yz_click(egw.java:1055)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:703)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:337)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:247)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:134)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:157)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:153)
at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:78)
at android.view.View.performClick(View.java:5264)
at android.view.View$PerformClick.run(View.java:21297)
at android.os.Handler.handleCallback(Handler.java:743)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:150)
at android.app.ActivityThread.main(ActivityThread.java:5546)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:792)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:682)
** Service (starter) Destroy **
** Activity (egw) Pause, UserClosed = true **
 
Upvote 0

wonder

Expert
Licensed User
Longtime User
The Linux-based Android file system is case sensitive.
 
Upvote 0
Top