B4A Code Snippet Get the path to media files returned from ContentChooser - Erel    Jul 24, 2022   (8 reactions) It is a mistake to try to get a file path from the returned resource. It will not work in most cases, and even if you will be able to get the path, you will not be able to access it.
You can use File.OpenInput to access the remote resource.
Correct solution: TextEditor - Save and load external fi B4A Question contentchooser for .json file - drgottjr (first post)    Jul 21, 2022   (1 reaction) "application/json" Wish B4X Ai Copilot - Erel (first post)    May 07, 2023   (6 reactions) 1. Better to use Wait For to handle the Result event. 2. The explanation is wrong and misleading. ContentChooser doesn't return a file or a folder. You can't use File.ListFiles nor you can access any other nearby resource. ContentChooser returns an accessible resource. It can be a resource from Goo B4A Tutorial [B4X] Features that Erel recommends to avoid - Erel    Dec 06, 2023   (89 reactions) File.DirRootExternal -> ContentChooser / SaveAs https://www.b4x./#content File.DirInternal / DirCache / DirLibrary / DirTemp / DirData / DirDefaultExternal / GetSafeDirDefaultExternal -> XUI.DefaultFolder Round2 -> NumberFormat, B4XFormatter: Most usages of Round2 are to format numbers. Modifyin B4A Question ContentChoose Library - klaus (first post)    Jan 10, 2018   (2 reactions) You don't need a ContentChooser.jar file.
The ContentChooser object is included in the Phone library shiped with B4A. B4A Question file name using ContentChooser - Claude Brun    Dec 08, 2023 My app needs to copy an external file (phone download directory ) to the DIR.Defaultexternal
To do this I use ContentChooser
On the phone filename is "Flag_xxx.jpg"
on result of Content.chooser, filename is "content://com.android.providers.downloads.documents/document/19"
The contents of the file ar B4A Question ContentChooser for PDF File - Erel (first post)    Feb 02, 2020   (1 reaction) Where does this code come from?
Why not:
Sub cc_Result (Success As Boolean, Dir As String, filename As String)
If Success=True Then
File.Copy(Dir, FileName, Starter.Provider.SharedFolder,"file.pdf")
End If
end sub B4A Question Updateable config file for B4A app - Erel (first post)    Dec 26, 2024   (1 reaction) You can use ContentChooser to let the user select the configuration file. This also works with Google Drive and other external file services. B4A Question Solved: display file from the Gallery? - Erel (first post)    Nov 23, 2015   (1 reaction) ContentChooser lets the user chooses an image from the gallery.
The default folder for pictures is:
Dim picturesFolder As String = File.Combine(File.DirRootExternal, "Pictures"))
You can use File.ListFiles to find the files in that folder.
Note that pictures may also be saved in other locations. B4A Question copying from Dir...External to DefaultFolder not work - Erel (first post)    Nov 15, 2022   (3 reactions) Google doesn't allow developers to directly access the external storage. You should use ContentChooser to let the user choose the file and then read it with File.ReadList. This is actually quite trivial. Dim CC As ContentChooser CC.Initialize("cc") CC.Show("text/*", "choose image") Wa Page: 1   2   3   4   5   6   7   Powered by ColBERT |