A anglia Member Licensed User Longtime User Apr 19, 2021 #1 I’m writing an app that needs a folder(s) that can- 1. Store a backup copy of an SQLite database 2. Allow the user to copy CSV files into the folder for import into the database 3. Store PDF files produced by the app for printing by the user. I could see how to do this before Android 11 came along. I don’t know the best method for Android 11 users. I don’t have an Android 11 device so I can’t test the app. Would using ‘GetSafeDirDefaultExternal ‘ to create a folder be the best way to enable the user to access the files? I’d be very grateful for any advice and suggestions. Thanks.
I’m writing an app that needs a folder(s) that can- 1. Store a backup copy of an SQLite database 2. Allow the user to copy CSV files into the folder for import into the database 3. Store PDF files produced by the app for printing by the user. I could see how to do this before Android 11 came along. I don’t know the best method for Android 11 users. I don’t have an Android 11 device so I can’t test the app. Would using ‘GetSafeDirDefaultExternal ‘ to create a folder be the best way to enable the user to access the files? I’d be very grateful for any advice and suggestions. Thanks.
Erel B4X founder Staff member Licensed User Longtime User Apr 19, 2021 #2 Just wrote this: https://www.b4x.com/android/forum/t...er-select-a-target-folder.129897/#post-816969 Tip: databases in wal journal mode are stored in up to 3 files. Upvote 0
Just wrote this: https://www.b4x.com/android/forum/t...er-select-a-target-folder.129897/#post-816969 Tip: databases in wal journal mode are stored in up to 3 files.
A anglia Member Licensed User Longtime User Apr 19, 2021 #3 Thanks Erel, Seems I was lucky posting when I did! I've downloaded your example. I assume it will work ok on Android 11? Are there any restrictions with Android 11 on accessing ANY folder for importing a CSV file for example? Thanks Upvote 0
Thanks Erel, Seems I was lucky posting when I did! I've downloaded your example. I assume it will work ok on Android 11? Are there any restrictions with Android 11 on accessing ANY folder for importing a CSV file for example? Thanks
Erel B4X founder Staff member Licensed User Longtime User Apr 20, 2021 #4 anglia said: I assume it will work ok on Android 11? Click to expand... Sure. anglia said: Are there any restrictions with Android 11 on accessing ANY folder for importing a CSV file for example? Click to expand... ANY folder -> no such thing. There are many restricted folders. The secondary storage (external storage) is accessible with ContentChooser. No special restrictions. Upvote 0
anglia said: I assume it will work ok on Android 11? Click to expand... Sure. anglia said: Are there any restrictions with Android 11 on accessing ANY folder for importing a CSV file for example? Click to expand... ANY folder -> no such thing. There are many restricted folders. The secondary storage (external storage) is accessible with ContentChooser. No special restrictions.
A anglia Member Licensed User Longtime User Apr 20, 2021 #5 Sorry Erel. I should have been clearer. What I meant was any folder created by my app or the user. Thanks Upvote 0
Sorry Erel. I should have been clearer. What I meant was any folder created by my app or the user. Thanks