B4A Code Snippet Detecting zip archive corruption - mazezone    Dec 17, 2023   (8 reactions) Maybe someone could use it. I will be glad if this algorithm is added to the internal Archiver library. Sub ZipIsValid(PathDir As String, NameFile As String) As Boolean Dim MyJO As JavaObject = Me Return MyJO.RunMethod("isValid", Array(File.Combine(PathDir, NameFile))) End Sub #If JAVA import java.util.zip.ZipFile; import java.util.zip.ZipEntry; import java.util.zip.ZipInputStream; import java.io.FileInputStream; import java.io.IOException; import java.util.zip.ZipException;... Games [XUI2D] Example Pack - Erel    Oct 2, 2022   (33 reactions)   tags: example games, XUI2D Games .131279/ Examples: - Hello world (based on Tiled) - Clumsy bird - Mario - Space Invaders - Walking... following a path - Angry birds example - Space Shooter - Tetris - X2 Source Code Video tutorial explaining the steps required for running the examples and configuring Tiled: Note that the video... packed as a single b4x lib. 300267245 The examples pack is a single zip with all the XUI2D examples...://github.com/leerob/Space_Invaders and https://github.com/ellisonleao/clumsy-bird. The examples... B4J Code Snippet jShell and 7-Zip to list contents and decompress gz (gzip) archive files - raphael75    May 10, 2020   (5 reactions) exit codes. B4J code to see the list of compressed files in the .gz archive: Sub...: Stand-alone 7-Zip program ' - "l": (Command) List contents of archive '... Example of output in log pane, if the 7-Zip command does not contain "-slt" option: 1: 15... Pavlov : 2019-02-21 Scanning the drive for archives: 1 file, 253 bytes (1 KiB) Listing archive: C... 4: 15:29:43.918: sh_ProcessCompleted . StdErr: Example of output in log pane, if the 7-Zip command... B4A Question Archiver working example - NJDude (first post)    Nov 16, 2012   (1 reaction) Try this:
Dim Zip As Archiver
Dim toZip() As String 'This array will contain all the files you want to zip
toZip = Array As String("File1.txt", "File2.txt", "File3.txt... B4A Tutorial [B4X] OkHttpUtils2 with Wait For - Erel    Dec 25, 2025   (59 reactions)   tags: image, wait, Download, Http MySql, Wait For, ws 256583317 Downloading resources is simpler with the new Resumable Subs feature. Using Wait For we can wait for the JobDone event in the same sub that started the download. No longer is it needed to have a single sub that handles all requests results. Simplest example: Dim j As HttpJob j... As HttpJob) If j.Success Then Log(j.GetString) End If j.Release Example of downloading a quote from... = j.GetBitmap End If j.Release End Sub Example of saving the downloaded file: Sub... B4A Tutorial [B4X] B4XPages - Cross platform and simple framework for managing multiple pages - Erel    Dec 25, 2025   (81 reactions) with a case insensitive string id. The main page id is "MainPage". 7. Example of adding a page: Dim Page2 As B4XPage2 Page2.Initialize B4XPages.AddPage("Page 2", Page2) 8. Example... B4A Tutorial Google Maps - Erel    Jul 7, 2025   (36 reactions)   tags: Maps, GoogleMaps, GPS, Erel, Map, Google Mpas the package name and api key in the attached example.... B4A Tutorial android.jar / targetSdkVersion / minSdkVersion - Erel    Oct 18, 2023   (93 reactions)   tags: runtime permission, sdk version, Targetsdk, SDK, B4A with backwards compatibility. I will explain it with an example. Google introduced the runtime permissions... B4i Tutorial Creating a certificate and provisioning profile - Erel    Apr 25, 2025   (17 reactions) Don't panic! While this process can be a bit annoying it is not too complicated and you can always delete the keys and start from scratch (which is not always the case in Android). Note that you must first register with Apple as an iOS developer (costs $99 per year). The whole process is done on a Windows computer. In order to install an app on an iOS device you need to create a certificate... B4A Tutorial Background location tracking - Erel    Jul 3, 2024   (51 reactions)   tags: Longrunningaoo, background clock alive, B4A Background location, gps, B4A https://www.b4x.com/basic4android/images/SS-2018-11-29_15.48.38.png Simple example of a foreground service that keeps the process running in the background. The current location is shown in the persistent notification. The app starts at boot and theoretically should run all the time. It also schedules itself to run with StartServiceAt. This can help in cases where the OS kills the process. Relevant example, based on this example, which plays music in the background: https://www.b4x.com... Page: 1   2   3   4   5   6   7   |