I provide the Uri2Tools library version 1.0 (2022.03.22)
The code requires Android 6.0 or 8.1
The library uses the following libraries:
- B4XCollections v1.12
- ContentResolver v1.50
- Core v11.20
- FileProvider v1.0
- SQL v1.50
- Storage v1.0
I would like to thank the authors for...
I am trying to create an application, which through the share menu, receives a uri of a file, then the application copies it to a "safe" directory
I already managed to receive the Uri correctly.
I also managed to correctly extract the path of the file, from the uri
But the copy...
I want to get the path of the file in the storage associated with my app as soon as the user clicks on the file and it opens with my app. But the path returned to the app is in Uri format. I want it in absolute file path for further operations. I am using the code given by Mr. Erel at the link...
showing a remote URL with a URI fragment in a WebView works fine. For example the URL https://www.b4x.com/android/help/views.html#webview_loadurl is shown in a Webview.
Using a local saved html file with framents does not work. Is there any way to show something like...
I would like to get the uri of a file that resides in my app's assets folder. Can you point me to a link that describes how it's done?
I saw many posts on the forum that shows code like this but none of the posts actually shows the coding behind GetFileUri sub routine...
Im using that kind of sub with StringUtils and B4XCipher library to encode some passwords :
Sub EncryptText(text As String, password As String) As String
Dim c As B4XCipher
Dim su As StringUtils
Return su.EncodeBase64(c.Encrypt(text.GetBytes("utf8"), password))
In my app I have a For Next loop that is used to copy all files in a particular folder. Since the target location is a URI, I use the method given here to copy the files. And it works correctly too.
The problem arises when there are a lot of files to copy. Like there is a user who tried to copy...
Hello , i try to open a PDF file from my app on an android 7 with the new permissions functions but when i try to do it, i get this error and a blank screen for a while and nothing more :
i am using b4a 8.50
My code :
Dim Mostrador_de_PDF As Intent
Dim uri As...