B4A Code Snippet Get the path to media files returned from ContentChooser - Erel    
Jul 24, 2022   
(10 reactions) assume that the resource returned from ContentChooser comes from the file system and if... files
SubName: GetPathFromContentResult
Description: Content providers such as the media gallery return a URL that starts with content://...
If you are just interested in showing the selected image... it is available):
This code depends on ContentResolver and SQL libraries.
Sub GetPathFromContentResult(UriString As String) As String
If UriString.StartsWith("/") Then Return UriString...
B4A Example ContentChooser Example (select image at phone) - MarkusR    
Aug 26, 2019   
(27 reactions)Here is a ContentChooser Example project to choose a image at phone for use in a activity with image view. it works with B4A 9.x and Android 8.1
https://www.b4x.com/android/help/phone.html#contentchooser
https://wiki.selfhtml.org/wiki/MIME-Type/Übersicht...
link: Any option to open content chooser with default folder ?...
B4A Question Make Android Player Play Sounds with ContentChooser - Marc DANIEL    
Mar 8, 2025   
(1 reaction)) with ContentChooser but I systematically get the following message:
"No application can perform... "mp3" Then
Chooser.Show(File.DirInternal,SongName)
Else
Player1...
link:
Download Android Sound Editor
I downloaded and installed "Sound Editor" and now my appli...
link: I made the changes. EREL, you were right. There is no more error message and when I do a long press ...
link:
temporary APK file
temporary B4A files...
B4A Question ContentChooser: choose a photo from ... Internet directly - peacemaker    
Nov 5, 2019HI, All
Does Android have such possibility ? :)
Just select photo of a subject directly from Internet, like among the list of apps-providers.
Or should i myself to load Google's picture search result and parse it to choose a photo ?...
B4A Question Get name of File from ContentChooser result? - JohnC    
Jul 28, 2019I wish to obtain the filename of the selected file from the content chooser.
For example, content chooser could return:
Wait For CC_Result (Success As Boolean, Dir As String, FileName As String...
link: -using-uri-from-content-chooser-or-from-received-shared-file-example.117325/#content
Hi Erel...
link: -using-uri-from-content-chooser-or-from-received-shared-file-example.117325/#content...
link: ) That real file paths will always start with "/"
2) That content uri's will always...
B4A Code Snippet SaveAs - Let the user select a target folder + list of other related methods - Erel    
Nov 1, 2024   
(46 reactions):
ContentChooser (Phone libray) - allows the user to select a resource or file using external... Download are not accessible: more information.
SaveAs- this code, the opposite of ContentChooser or... As JavaObject
Dim ContentResolver As JavaObject = ctxt.InitializeContext.RunMethodJO("getContentResolver", Null)
Dim out As OutputStream = ContentResolver.RunMethod...
B4A Question ContentChooser crash - ivanomonti    
Nov 21, 2015Use this function but on neo samsung and other ngm as I closes unexpectedly or not display picture
Dim Chooser As ContentChooser
Chooser.Show("image/*", "Select an image")
Sub chooser_Result (Success As Boolean, Dir As String, FileName As String)
If Success Then
Dim FileName2 As String = "image.jpg"
Dim Dir2 As String = File.Combine(File.DirRootExternal,"DCIM/COSTOLA")
File.Copy(Dir,FileName,Dir2,FileName2)
If File...
B4A Question Loading/Displaying PDF in Webview with ContentChooser problem - Andrew (Digitwell)    
Aug 16, 2021/content%3A%2F%2Fcom.android.providers.downloads.documents%2Fdocument%2F3197
Any ideas what I am doing wrong?
FYI...
link: Great....
link:
So using Multipart post to upload the file to a server,
is it ?
Yes...
link:
1. Android WebView doesn't support PDF documents.
2. Don't use FileUri with this url. Resul...
B4A Question ContentChooser proper mime - Robert Valentino    
Jun 22, 2021When I use the below code with contentchooser to try and pick pdf files it displays pdf's and...).
Is there a different mime to only show PDFs and only show DBs in the contentchooser list?...
link:
I think it is this:
PickFile.Show("application/octet-stream", "Pick a Database"...
link:
octet-stream is a general binary file type.You could also try
https://www.iana.org/assignments/med...
link: octet-stream is a general binary file type.You could also try
https://www.iana.org/assignments/med...
German MimeType im ContentChooser - drgottjr (first post)    
Jun 13, 2026   
(1 reaction)Mit ContentChooser können Sie Dateien anhand ihres MIME-Typs und nicht anhand ihrer Dateiendung auswählen. Falls Ihre benutzerdefinierte Datei von ContentChooser (z. B. von Android)
nicht als Textdatei erkannt wird, müssen Sie beim Anzeigen des Dateinamens in ContentChooser den MIME-Typ "... Verhalten von ContentChooser in diesem Fall nicht ändert.
Wenn Sie eine benutzerdefinierte...
link: Hallo,
ich möchte im ContentChooser eine eigene Textdatei mit der Extension ".LFL"...
Page: 1  
2  
3  
4  
5  
6