Hi all,
Thanks to everybody in advance.
I'm working on an app, that run correctly (in DEBUG and in RELEASE modes) on tested devices: Samsung S3 (Android 4.1.2) and S4 (Android 5.0.1).
This morning I have installed this app on a HUAWEI G Play Mini (Android 4.4), at start the app crashes and I obtain the following Logs, in DEBUG mode:
...and in RELEASE mode:
The app crashes if the HUAWEI is not connected to computer via USB cable too.
In DEBUG it doesn't find a file, and in RELEASE doesn't open the database.
Why? The file is in the File Manager tab and the database, by code, is in a subdir of DirRootExternal.
The HUAWEI has an SD card mounted, but if I check the file inside the SD, I don't find the subdir I need.
Where could be the cause of the problem? Someone can help me?
Thanks in advance.
Thanks to everybody in advance.
I'm working on an app, that run correctly (in DEBUG and in RELEASE modes) on tested devices: Samsung S3 (Android 4.1.2) and S4 (Android 5.0.1).
This morning I have installed this app on a HUAWEI G Play Mini (Android 4.4), at start the app crashes and I obtain the following Logs, in DEBUG mode:
LogCat connected to: 4C3HMQ15CA020436
int logctl_get(): open '/dev/hwlog_switch' fail -1, 13. Permission denied
Note: log switch off, only log_main and log_events will have logs!
--------- beginning of /dev/log/main
Copying updated assets files (79)
java.lang.RuntimeException: Unable to create service it.ritmo.setandgopro.starter: java.lang.RuntimeException: java.io.FileNotFoundException: /storage/emulated/0/Android/data/it.ritmo.setandgopro/files/virtual_assets/00.png: open failed: ENOENT (No such file or directory)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:2699)
at android.app.ActivityThread.access$2000(ActivityThread.java:143)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1336)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5291)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:849)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:665)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.RuntimeException: java.io.FileNotFoundException: /storage/emulated/0/Android/data/it.ritmo.setandgopro/files/virtual_assets/00.png: open failed: ENOENT (No such file or directory)
at anywheresoftware.b4a.shell.Shell.virtualAssets(Shell.java:167)
at anywheresoftware.b4a.shell.Shell.start(Shell.java:99)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:88)
at it.ritmo.setandgopro.starter.onCreate(starter.java:32)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:2679)
... 10 more
Caused by: java.io.FileNotFoundException: /storage/emulated/0/Android/data/it.ritmo.setandgopro/files/virtual_assets/00.png: open failed: ENOENT (No such file or directory)
at libcore.io.IoBridge.open(IoBridge.java:449)
at java.io.FileOutputStream.<init>(FileOutputStream.java:94)
at anywheresoftware.b4a.objects.streams.File.OpenOutput(File.java:370)
at anywheresoftware.b4a.shell.Shell.virtualAssets(Shell.java:154)
... 14 more
Caused by: libcore.io.ErrnoException: open failed: ENOENT (No such file or directory)
at libcore.io.Posix.open(Native Method)
at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110)
at libcore.io.IoBridge.open(IoBridge.java:440)
... 17 more
...and in RELEASE mode:
** Service (starter) Create **
starter_service_create (java line: 156)
android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (code 14): Could not open database
at android.database.sqlite.SQLiteConnection.nativeOpen(Native Method)
at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:209)
at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:193)
at android.database.sqlite.SQLiteConnectionPool.openConnectionLocked(SQLiteConnectionPool.java:463)
at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:185)
at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:177)
at android.database.sqlite.SQLiteDatabase.openInner(SQLiteDatabase.java:818)
at android.database.sqlite.SQLiteDatabase.open(SQLiteDatabase.java:803)
at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:708)
at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:683)
at anywheresoftware.b4a.sql.SQL.Initialize(SQL.java:37)
at it.ritmo.setandgopro.starter._service_create(starter.java:156)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:153)
at it.ritmo.setandgopro.starter.onCreate(starter.java:53)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:2679)
at android.app.ActivityThread.access$2000(ActivityThread.java:143)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1336)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5291)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:849)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:665)
at dalvik.system.NativeStart.main(Native Method)
java.lang.RuntimeException: Unable to create service it.ritmo.setandgopro.starter: java.lang.RuntimeException: android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (code 14): Could not open database
at android.app.ActivityThread.handleCreateService(ActivityThread.java:2699)
at android.app.ActivityThread.access$2000(ActivityThread.java:143)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1336)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5291)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:849)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:665)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.RuntimeException: android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (code 14): Could not open database
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:206)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:153)
at it.ritmo.setandgopro.starter.onCreate(starter.java:53)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:2679)
... 10 more
Caused by: android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (code 14): Could not open database
at android.database.sqlite.SQLiteConnection.nativeOpen(Native Method)
at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:209)
at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:193)
at android.database.sqlite.SQLiteConnectionPool.openConnectionLocked(SQLiteConnectionPool.java:463)
at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:185)
at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:177)
at android.database.sqlite.SQLiteDatabase.openInner(SQLiteDatabase.java:818)
at android.database.sqlite.SQLiteDatabase.open(SQLiteDatabase.java:803)
at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:708)
at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:683)
at anywheresoftware.b4a.sql.SQL.Initialize(SQL.java:37)
at it.ritmo.setandgopro.starter._service_create(starter.java:156)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
... 13 more
The app crashes if the HUAWEI is not connected to computer via USB cable too.
In DEBUG it doesn't find a file, and in RELEASE doesn't open the database.
Why? The file is in the File Manager tab and the database, by code, is in a subdir of DirRootExternal.
The HUAWEI has an SD card mounted, but if I check the file inside the SD, I don't find the subdir I need.
Where could be the cause of the problem? Someone can help me?
Thanks in advance.