Hybrid and SQLite files location on Android

0
0

In my Hybrid apps i can create without problem SQLite DB inside the private Application folders.
Now i need to position the files in public folders accessibile from file management apps (at the same level of DCIM folder)
With Android.OS.Environment.ExternalStorageDirectory i can get the path for External Storage
But when i try to open/create the SQLIte file i got an error that the file is not accessible.

 

  • You must to post comments
0
0

Ciao Gabriele,

It’s probably a permissions issue. Check out these AndroidManifest permissions:
https://developer.android.com/training/data-storage/manage-all-files
https://developer.android.com/reference/android/Manifest.permission#READ_EXTERNAL_STORAGE
https://developer.android.com/reference/android/Manifest.permission#WRITE_EXTERNAL_STORAGE
https://developer.android.com/reference/android/Manifest.permission#MANAGE_EXTERNAL_STORAGE

I believe there are other ways to access the files in that directory, but would be more difficult to implement.

Best,
Levie

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.