Android Question Can not init sqlite database

Hello to all. I am just learning how to use vb4android. I wrote a litle app to open a database of another app in it's data folder in internal storage.

My phone is rooted. But always getting error.

I have access to data folder. I can read databases size as i can verify that exists as file.

Can you take a look???

Thank you.
 

Attachments

  • pinkdb.zip
    7.5 KB · Views: 163
Last edited:
Here is a log also.

** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
main_button1_click (java line: 273)
android.database.sqlite.SQLiteException: unable to open database file
at android.database.sqlite.SQLiteDatabase.dbopen(Native Method)
at android.database.sqlite.SQLiteDatabase.<init>(SQLiteDatabase.java:1866)
at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:822)
at anywheresoftware.b4a.sql.SQL.Initialize(SQL.java:36)
at com.pinkdb.main._button1_click(main.java:273)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:167)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:155)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:151)
at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:55)
at android.view.View.performClick(View.java:2485)
at android.view.View$PerformClick.run(View.java:9080)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3687)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625)
at dalvik.system.NativeStart.main(Native Method)
android.database.sqlite.SQLiteException: unable to open database file
 
Upvote 0
Top