B4A Question How to get full path from URI? - Inman    
Feb 25, 2018 is it returns a URI and not a physical path like /storage/emulated/0/ etc... While I can perform copy options successfully with URI and streams (File.Copy2), I still need to display the full physical path to the folder user selected so that he can make sure the path is right. And URI path like.... Tested uri was (HierarchicalUri) content://com.android.externalstorage.documents/tree/primary%3ADCIM. URI is that of a folder on external SD card.
Check the lines below
Cursor1 = cr.Query(Uri1, Proj...
B4A Example Getting file info using uri from content chooser or from received shared file - example - Nokia    
May 4, 2020   
(24 reactions)example of getting file property information from uri provided by content chooser or received file shared to the app. Curtesy of Erel’s example: Received Share. Shows File name, Mime Type, date...
link: Start a new thread and provide more information....
link: Thank you,Erel.
It works well in Release mode,but not normal in debug mode in my phone.The TextEdito...
link: The best example / resource is this one: TextEditor - Save and load external files ...
B4A Question Start App from URI in email - stevel05    
Mar 6, 2013   
(6 reactions) you click on the link the app runs and gets the Intent data into the URI string from where...
link:
Looks tricky
But manageable. You linked to a great article, thanks!...
link: Any solution for android 12?
it works perfectly on Androd 11 but nor on android 12
Edit:
Looks tricky
https://doordash.engineering/2...
B4A Question How to share multiple images on Android 7 without "FileUriExposedException"? - fredo    
Nov 2, 2016.provider"
android:exported="false"
android:grantUriPermissions...)
Dim Uris As List
Uris.Initialize
For Each image As String In images
File.Copy(File.DirAssets, image, sharedFolder, image)
' ?? SetFileUri(res, image)
' Dim u As Uri
' u.Parse("file://" & File.Combine(Starter.strSharedFolder, image) )
' Uris.Add(u)
Next
Dim jo As JavaObject = i
jo...
B4J Tutorial JavaFX17+ InlineUris - stevel05    
Aug 10, 2025   
(8 reactions)JavaFX17 added the possibility to use inlineURIs. One use for this is to add small CSS Stylesheets....RootPane.LoadLayout("Layout1")
MainForm.Show
MainForm.Stylesheets.Add(GetDataURI...-color:green;
}"$
End Sub
Private Sub GetDataURI(Data As String) As String
Dim SU...
link:
all javafx 17 goodies are possible with Android native (b4a) ?
No, these are additions to JavaFX17. B4j only I'm afraid....
link: When listening "java" i am trying to hide... because i am afraiding it.. but now i am curious... all javafx 17 goodies are ...
B4A Code Snippet File URI and URL - max123    
May 1, 2022   
(1 reaction)-creation.76712/#content
I wrote these B4A Subs to get URI and URL of files:
FileURI(Dir As String, FileName As String) As String
FileURL(Dir As String, FileName As String) As String
AssetFileURI(FileName... As String) As String
The FileURI method is the same as XUI.FileUri, you can use it on projects where...
the same results with FileURI and FileURL methods so they are just for semplicity.
Finally I added...
you want to change the return values in URI methods.
Here the code, I've attached a Zip demo...
B4A Library AndroidNetUri Library - Ivica Golubovic    
Dec 5, 2023   
(13 reactions)DEPRECATED LIBRARY!!! Use AndroidNetUri2 instead.
This library contains the AndroidNetUri class with all the features, methods and properties like android.net.Uri for Java. It also contains the AndroidNetUriBuilder class which is a subclass of the android.net.uri class (android.net.Uri.Builder... all Uri and Uri is everything.". That is why BA deserves to have this class with all its...
link: it looks fantastic,
it would be nice to attach an example to better understand the use of the various functions...
B4A Question SimpleExoPlayer URI Error - is there a regex way of replacing bad characters - Robert Valentino    
Aug 13, 2025.FileDataSource$FileDataSourceException: uri has query and/or fragment, which are not supported
The FileName in question has...) but I am sure I have a lot more mp3 files with problems like this.
DOES Anyone have a URI Safe parser...
link: For some reason every time I try to post the code inside the CODE blocks I get an error so attaching...
link: Will give that a try. tried to post yesterday that I had found this routine URI Decoding
Took...
link:
Private Sub UrlEncodeAndKeepSlashes (url As String) As String
Dim su As StringUtils
Dim sb ...
B4A Library AndroidNetUri2 (Uri wrapper) - Ivica Golubovic    
Dec 5, 2023   
(6 reactions)This is a new and complete wrapper of the android.net.Uri class and the android.net.Uri.Builder subclass, as well as the android.content.ContentUris class that contains static methods.
This library will be used in the development of all my future libraries if they require "Uri".
All... are AndroidNetUri and ContentUris.
The library also contains AndroidNetUri and AndroidNetUriBuilder classes.
To create a new AndroidNetUri instance, you can use AndroidNetUriBuilder or one of the methods from...
Bug? xui.FileUri not 100% crossplatform due to missing traling slash - sorex    
Dec 9, 2018Hello,
I notice that I still need to use OS depending code exeptions while using
xui.FileUri(file.dirAssets,"")
the reason is that the B4A result has a trailing slash but B4i doesn't.
Can this be normalized so that both results are the same (both with or without trailing slash)?...
Page: 1  
2  
3  
4  
5  
6  
7