1. carlos7000

    Android Question Copy file from uri [SOLVED]

    Hello. 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...
  2. M

    Android Question Download and save the file

    Hi I'm trying to save the downloaded file with this code: Sub DownloadAndSaveFile (Link As String) Dim j As HttpJob j.Initialize("", Me) j.Download(Link) Wait For (j) JobDone(j As HttpJob) If j.Success = True Then Dim out As OutputStream =...
  3. KMatle

    B4R Tutorial ESP32: Download huge file from a server and save it

    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...
  4. M

    iOS Question Create "public" folder in iOS

    Hi Erel, 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...
  5. M

    iOS Question [B4X] Upload/Download files Google Drive or other cloud

    Hi everyone, Is it possibile with B4X (iOS and Android), to upload and download files with google drive? Is not mandatory google drive, also another cloud. Thanks in advance.
  6. M

    Android Question Downlod file from server and save it

    I have a large file to download. To do this i use LargeFileDownload( example. How can i save file?
  7. B

    Android Question Play file via network

    Hi everyone, i need to play some file (*.mp3/*.mp4) via network, and i found this thread: where @Erel suggest to download the file with SMB and then play with MediaPlayer; but the thread...
  8. amorosik

    Italian [B4A] Scrivere dati in locale - che sistema usare?

    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...
  9. rleiman

    Android Question Getting the uri of a file in the app's assets folder

    Greetings, 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...
  10. M

    Android Question Download file from GitHub repository

    Hi everyone. 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.
  11. Y

    iOS Question File weirdness when operating in dir.documents

    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...
  12. A

    B4J Question [WebApp] Download or Open new browser tab to view file

    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...
  13. T

    B4J Question B4J File.exists question

    Hello 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 else ' code if no txt file found endif I tried it that way, but I always get false (meaning no file...
  14. MarkusR

    Wish File.Rename and File.Delete(into trashcan)

    i missing a rename in File. also delete into windows/linux trashcan.
  15. F

    Android Question File.DirDefaultExternal

    Hi all, I'm improving my app for to save and open PDF file With android:targetSdkVersion="14" was fine, but after increase targetSdkVersion to 26 not work In the past I saved and read directly from DirRootExternal but now I cannot. Now I'm using DirDefaultExternal but when I try to read the...
  16. Mikel Huerta

    Android Question (SOLVE)error open PDF file with android 7+

    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 : Sub Doit() Dim Mostrador_de_PDF As Intent Dim uri As...
  17. A

    Android Question Copy all folder content

    Hello, Does anybody know how to copy all files from one folder (for example dirInternal -> folder1 ) to another folder (for example dirInternal -> folder2 )? Thanks in advance
  18. peacemaker

    Android Question Email intent + attachment: email clients only are required

    HI, All Is it possible ? Email object of Phone lib offers all text-messaging apps - it's wrong, the attachment is required by email only.
  19. A

    Android Question how to add library?

    Hi I am new to b4a, and sometimes I see libraries that I can download (for example, but I dont know can i add it to the libraries... I tried to upload the .jar file to the project files manager, but it...
  20. A

    Android Question Hebrew TTS speak

    Hi I tried to use the TTS in hebrew, but it didnt work beacuse this language files are missing. someone knows where I can find and use the TTS on hebrew on B4A? Thanks