B4A Tutorial [B4X] TextEditor - Save and load external files - Erel    Sep 10, 2023   (37 reactions) This is a B4i and B4A example, which demonstrates various external files related tasks. 116714.... B4A Load external files, including online files, using ContentChooser. Save to an external target...-list-of-other-related-methods.129897/#content Allow other apps to view text files using this app... external files, including online files, using DocumentPickerViewController: https://www.b4x.com...-with-activityviewcontroller.73159/#content This also allows saving the text with the Files app. Allow... B4A Code Snippet [B4X] Bytes To File - Erel    May 24, 2020   (19 reactions)   tags: Image, Share Images, Bytes, B4X, B4X Bytes To File This code is no longer needed. Use File.WriteBytes / ReadBytes. Write an array of bytes to a file and read a file into an array of bytes. Sub BytesToFile (Dir As String, FileName As String, Data() As Byte) Dim out As OutputStream = File.OpenOutput(Dir, FileName, False) out.WriteBytes(Data, 0, Data.Length) out.Close End Sub Sub FileToBytes (Dir As String, FileName As String) As Byte() Return Bit.InputStreamToBytes(File.OpenInput(Dir, FileName)) End Sub Note that you can convert... B4i Tutorial Managing multiple certificates / provision files - Erel    Feb 7, 2024   (3 reactions) This tutorial is only relevant after you were able to build and install B4i-Bridge. If you haven't yet started with B4i then please go over these two tutorials instead: Creating a certificate and provisioning profile Installing B4i-Bridge and debugging first app 5 different files are required... file (ios_*.cer) - Provision file (.mobileprovision) The first three files are created by the IDE when you select Tools - Private sign key - Create new key. The certificate file is downloaded from... B4A Tutorial Sharing files from your app with File Provider - Erel    Oct 3, 2018   (17 reactions)   tags: share file, File, File Provider, B4A Sharing File Provider Example was updated based on FileProvider class: https://www.b4x.com/android/forum/threads/class-fileprovider-share-files.97865/ See the above link if you are interested in sharing files from your app. This tutorial explains the steps required to implement a file picker that other applications can use to select files or resources. 47350 47351 47352 Starting from Android 7 - Nougat,it is not possible to share a file directly (file:// uri). It will result with a FileUriExposedException... B4J Tutorial Create Windows native executables (exe files) - Erel    Mar 26, 2020   (21 reactions)   tags: jar to exe This tutorial is no longer relevant. Use B4JPackager11: B4JPackager11 - the simplest way to distribute UI apps When you compile in Release mode the complete app is packed as an executable jar file. You can distribute this jar file and run it on Windows, Mac or Linux. However there are cases where you want to convert this jar file to a native executable. For example if you want to set a custom icon. You can use a free tool named Launch4j to convert the jar file to a native Windows executable... B4i Tutorial Open external files with your app - Erel    Dec 19, 2022   (2 reactions) that deal with files show a standard file handling dialog. One of the options in this dialog is to open the file with another app. This tutorial explains how you can add your app to this list and then open the file. For example you can use this to open CSV files received by mail in your app or from Dropbox app (useful for debugging this). The first step is to register the file types... of this tutorial: https://www.b4x.com/android/forum/threads/open-local-files-with-external-apps.51941/... B4A Tutorial Download huge files with HttpUtils2 - Erel    Jul 25, 2021   (18 reactions)   tags: download, erel, download with progress Better to use: https://www.b4x.com/android/forum/threads/simple-progress-http-download.127214/#post-796463 The attached project includes a slightly modified version of HttpUtils2 and a new service named DownloadService. The purpose of DownloadService is to make it simple to download files of any... multiple files at once and track the progress of each one of them. The following libraries...) RandomAccessFile As this is a modified version of OkHttpUtils2 you should not reference OkHttpUtils2... B4A Code Snippet Upload files with WebView - Erel    Jun 9, 2022   (15 reactions)   tags: Upload files with WebView, Webserver code. 2. The ShowFile_Chooser event is raised when the user clicks on a "browse" button. 3. You need to get the file URI with FileProvider and call SendResult. Example based on ContentChooser. Sub ShowFile_Chooser (FilePathCallback As Object, FileChooserParams As Object) cc.Initialize("CC") cc.Show("*/*", "Choose File") Wait For CC_Result (Success As Boolean, Dir As String, FileName As String) Dim jo As JavaObject = Me If Success Then... B4i Code Snippet Make your app files accessible with Files app - Erel    Apr 27, 2023   (5 reactions) #PlistExtra: <key>LSSupportsOpeningDocumentsInPlace</key><true/><key>UIFileSharingEnabled</key><true/> All files in File.DirDocuments / XUI.DefaultFolder will be accessible from the Files app (and iTunes as well).... B4A Tutorial Text files - Erel    Nov 28, 2010   (18 reactions)   tags: dirDefaultE, tutorial, dir, dirAssets, B4A are files and databases. We will cover text files in this tutorial. The predefined Files object has several utility methods for working with text files which are pretty easy to use. Files locations - There are several important locations where you can read or write files. File.DirAssets The assets folder includes the files that were added with the file manager. These files are read-only. You can not create new files in this folder (which is actually located inside the apk file). File.DirInternal... Page: 1   2   3   4   5   6   7   |