Hello,
Here is my problem:
I am using an old application to write to a database (targetSDK = 22).
This "perso.bd" database is in a folder at the root of my internal storage ("/ storage / emulated / 0 / mydatabase")
It works great, even on android 10.
I have programmed four years ago an app that uses the same database for reading.
With targetSDK = 22, no problem.
I modified targetSDK by trying 23, 29 or 30 on an Android 10 smartphone.
In all cases: Error during database initialization.
I requested and got different permissions (rp.PERMISSION_READ_EXTERNAL_STORAGE and rp.PERMISSION_WRITE_EXTERNAL_STORAGE)
Nothing changes, the error persists.
I cannot change the folder in which "perso.bd" is placed by the other application.
Is there a way to get my app (non-google) to work with targetSDK = 29 or 30?
I have tried some ideas from this forum without success.
Thank you for your ideas and your examples !
Here is my problem:
I am using an old application to write to a database (targetSDK = 22).
This "perso.bd" database is in a folder at the root of my internal storage ("/ storage / emulated / 0 / mydatabase")
It works great, even on android 10.
I have programmed four years ago an app that uses the same database for reading.
With targetSDK = 22, no problem.
I modified targetSDK by trying 23, 29 or 30 on an Android 10 smartphone.
In all cases: Error during database initialization.
B4X:
Dim maBD As SQL
maBD.Initialize("/storage/emulated/0/mydatabase","perso.bd",True)
'>>>> Erreur "android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (code 14 SQLITE_CANTOPEN): Could not open database"
I requested and got different permissions (rp.PERMISSION_READ_EXTERNAL_STORAGE and rp.PERMISSION_WRITE_EXTERNAL_STORAGE)
Nothing changes, the error persists.
I cannot change the folder in which "perso.bd" is placed by the other application.
Is there a way to get my app (non-google) to work with targetSDK = 29 or 30?
I have tried some ideas from this forum without success.
Thank you for your ideas and your examples !