J johnaaronrose Active Member Licensed User Longtime User May 18, 2022 #1 I've used the code in https://www.b4x.com/android/forum/t...-from-server-with-progress.126797/post-793290 post #1 to do a https download with progress. I've set the folder to copy to as File.DirInternal. When I Compile&Run the app, the file is shown in the Log as copied to folder: /data/user/0/org.mywire.johnrose.httpsexample/files Where is that file using Google's Files / Google's File Manager apps?
I've used the code in https://www.b4x.com/android/forum/t...-from-server-with-progress.126797/post-793290 post #1 to do a https download with progress. I've set the folder to copy to as File.DirInternal. When I Compile&Run the app, the file is shown in the Log as copied to folder: /data/user/0/org.mywire.johnrose.httpsexample/files Where is that file using Google's Files / Google's File Manager apps?
Pendrush Well-Known Member Licensed User Longtime User May 18, 2022 #2 Your app internal folder can be read and write only from your app. Upvote 1
J johnaaronrose Active Member Licensed User Longtime User May 18, 2022 #3 Pendrush said: Your app internal folder can be read and write only from your app. Click to expand... Thanks. I would like to be able to have the app write to a folder (not an external SD card) so that another app / Google Files / Google File Manager can read it. It would also be good if this could be applicable to any version of Android from say 5. What reference (i.e. not File.DirInternal) should I use for the folder? Last edited: May 18, 2022 Upvote 0
Pendrush said: Your app internal folder can be read and write only from your app. Click to expand... Thanks. I would like to be able to have the app write to a folder (not an external SD card) so that another app / Google Files / Google File Manager can read it. It would also be good if this could be applicable to any version of Android from say 5. What reference (i.e. not File.DirInternal) should I use for the folder?
Erel B4X founder Staff member Licensed User Longtime User May 18, 2022 #4 You can save to RuntimePermissions.GetSafeDirDefaultExternal. File managers can see this folder. Better option is to use the "SaveAs" code and let the user choose the destination. Example: [B4X] TextEditor - Save and load external files Upvote 0
You can save to RuntimePermissions.GetSafeDirDefaultExternal. File managers can see this folder. Better option is to use the "SaveAs" code and let the user choose the destination. Example: [B4X] TextEditor - Save and load external files
J johnaaronrose Active Member Licensed User Longtime User May 18, 2022 #5 Thanks, Erel. It worked and saved to, in Google's Files: Internal storage/Android/data/ etc. Upvote 0