Android Question Let the folder choose, rigth way?

Erel

B4X founder
Staff member
Licensed User
Longtime User
SaveAs (ContentChooser) - Lets the user pick a destination for the currently resource that is being saved.

ExternalStorage - A mechanism for the user to grant access to your app to a specific folder.

Sounds like you need ExternalStorage.

Notes about SQLite:
1. Use XUI.DefaultFolder for the database and copy it when needed. You cannot open a db with ExternalStorage or SaveAs.
2. Set the journal mode to DELETE: https://www.b4x.com/android/forum/threads/b4x-sql-setting-the-journal-mode.136211/#content
 
Upvote 0

mw71

Well-Known Member
Licensed User
Longtime User
Thanks for your reply, Erel.

I should have specified "write a file (SQLite)" more precisely.
I use File.DirInternal to write to and use the file.
Then, I would like to copy the file for backup and sharing purposes.

I will also take a look at ExternalStorage.

Thanks also for the tip about Journal Mode.
 
Upvote 0
Top