i am doing student internship,
i am converting web application to android webview application.
downloaded example file "B4AExample.zip" from "https://www.b4x.com/android/forum/threads/ultimatewebview-custom-view.135666/"
and in that "txtUrl.Text"...
In my project I have a WebView that loads a webpage that has a "Choose File" button.
I took a look in the forum and i found this post: Upload files with WebView
However... the attached project works, but it's not b4xpages...
As soon as i take the code (and the manifest too) to put...
I am using DirLibrary to store files. Periodically, I add new files and delite out obsolete files, but I noticed that in the settings, if you look at the size of the occupied data, they change with some delay. That is, if I add something, then I will see the increased size only after a while...
I'm using a custom type that consists of keys like title, text, datetime, keywords etc. My simple "database" is just a list of hundreds of these.
The problem is that as for now I'm using their Unix times to identify them, and that was a big mistake, as due to how the app works there will be...
In my private (not publishing to Play Store and using on my private Android 10 device) phone I've made myself an app that saves its' backups in storage/emulated (File.DirRootExternal), I've implemented permission checking and everything works well. I really prefer to have it over there as it's...
I found this library, very useful, but I couldn't find how to create the file.
There is a post related to how to create Word documents:
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'm trying to save the downloaded file with this code:
Sub DownloadAndSaveFile (Link As String)
Dim j As HttpJob
Wait For (j) JobDone(j As HttpJob)
If j.Success = True Then
Dim out As OutputStream =...
This example downloads a file from a server folder (here I use a folder in htdocs on my apache server) and saves it to a file on the file system. Tested with 700KB files. Set headers (browse the www how to set up headers or credentials). Note that the ESP32 filesystem is quite slow. Downloading...
How can I create with B4i a "public" directory / folder?
I would like to access it with my developed app and in this folder I would like to edit normal with the "normal" file-explorer.
It is in B4A "File.DirRootExternal" ... and in B4i ??
I do not want to access the folder via iTunes...
i need to play some file (*.mp3/*.mp4) via network, and i found this thread: https://www.b4x.com/android/forum/threads/how-do-i-play-a-music-file-from-a-network-server.28506/#post-165736 where @Erel suggest to download the file with SMB and then play with MediaPlayer; but the thread...
Programma su Android per tracciare percorso bici col gps del telefono
Normalmente salvo su file di testo nella memoria esterna
Una roba del tipo
Dim rp As RuntimePermissions
Dim LogDir As String=rp.GetSafeDirDefaultExternal("App_Bici")
Dim nome_file As String="file_log.txt"
Dim Writer As...
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...
I never used github but now I need to download a file from a repository.
I have a repository , and I want to download only the latest added file.
It’s possibile to do this in b4x?
Thanks in advance.
I have encountered an extremely strange behavior when using dir.documents.
I'm creating a file containing a string inside of dir.documents. Immediately after creating the file I check if it exists, and that returns true.
Later on, when trying to access the same file, it does not exist anymore...
I have a WebSocket Class that generates a pdf report and saves it to a browser accessible location based on dynamically generated (from this same WebSocket class) controls to get report parameter input from the browser user. I can WebUtils.redirect to the generated pdf file but I want to either...
I have a question about the file.exists method.
Is it possible to use that method to check for an empty folder?
For example :
if file.exists (FolderName, "*.txt") then
' code if exists
' code if no txt file found
I tried it that way, but I always get false (meaning no file...