Hi everyone
Im creating an app that need to save URI path to a JSON file, is there a function to return the URI from a file?
for example my json should contain uri like this:
file:///data/user/0/com.myapp/files/share/1/0.webp
My files are stored on the safe dir share created
All folders are ok and work, but i still not realize how to extract the URI from a file, for example the file sound.mp3 saved at shared folder
I want to get his URI path and save it to file for later working with it.
Im creating an app that need to save URI path to a JSON file, is there a function to return the URI from a file?
for example my json should contain uri like this:
file:///data/user/0/com.myapp/files/share/1/0.webp
My files are stored on the safe dir share created
XML:
CreateResource(xml, provider_paths,
<files-path name="name" path="shared" />
)
B4X:
safefolder = Starter.Provider.SharedFolder
mp.Load(safefolder,"sound.mp3")