B4J Question jRDC2 - "Include" - aeric (first post)    Mar 14, 2024   (1 reaction) ReadAndAddExtCmds Just use File.ReadMap or File.ReadMap2... B4A Question To read txt file with more fields - Computersmith64 (first post)    Feb 18, 2019   (1 reaction) Whenever I have files in my apps that have key/value pairs (eg: settings files) I always create a map then use File.ReadMap2 & File.WriteMap. - Colin.... B4A Code Snippet Localizator with assets for every language instead of DB - Cadenzo    Apr 7, 2025   (8 reactions) .ReadMap2(sFile, "", mapArr(langNr)) 'use also data of older map file or delete it, if..." 'Default strings.Clear strings = File.ReadMap(File.DirAssets, "strings_"... this files as assets in my projects and depending on the selected language the "strings" map reads... copied to another file location and fills a "strings" map with keys and values depending... the Localizator tool creates in "BuildMapFiles" an array of maps (for each supported language... B4A Question [SOLVED] Weird File.Exists behavior - Computersmith64    May 17, 2018 an update) it does something else. Public Sub Read_Options() As Boolean If File.Exists(File.DirInternal, "options.dat") Then mOptions = File.ReadMap2(File.DirInternal...Must be my day for weird crap... I have the following sub that checks whether an options file... the device (including for all users), then reinstall it from B4A, the first time it runs File.Exists returns true - & the version data in the options file shows the previously installed version... B4J Library [B4X] BalConverter - Convert the layouts files to JSON (and vice versa) - Erel    Sep 11, 2025   (29 reactions)   tags: Eshe, files, convert, bal, layouts . It is recommended to backup your layout files before working with this tool. Updates v2.30... the designer layout files and JSON format. This allows you to edit the layout with a text editor. Note that the format is not so simple as the layout files were not designed to be edited this way. The converter app is simple. You choose a folder and it will convert all layout files from one format to another. The original files are not deleted. It filters the files based on the extension (bal or bal.json... B4A Library [class] FileProvider - share files - Erel    Aug 16, 2021   (45 reactions)   tags: B4A Class FileProvider, share email file, share, File provider, email, WP SHARE Edit: FileProvider is included as an internal library now. After investigating several issues with the current FileProvider code that you can find in the forum, I decided to make some improvements and implement it in a class. Starting from Android 7 (API 24) you cannot directly share file uris with other applications. You need to use FileProvider. The FileProvider class should work on all Android versions (4+). Instructions: 1. Add a reference to FileProvider library. 2. Add to... Games [XUI2D] Example Pack - Erel    Oct 2, 2022   (33 reactions)   tags: example games, XUI2D Games Updated thread based on X2 v2.0+: https://www.b4x.com/android/forum/threads/xui2d-x2-v2-0-2021... Character - Tiles Map - Joints 1 - Tank Attack - Monster Truck - Ilan's First App - Drawing lines... following a path - Angry birds example - Space Shooter - Tetris - X2 Source Code Video tutorial... is not 100% up to date. It was created before the X2 library was available. All the X2 modules are now packed as a single b4x lib. 300267245 The examples pack is a single zip with all the XUI2D examples... B4A Question saving textfile - Erel (first post)    May 13, 2012 You will need to use File.ReadMap2 and explicitly set the order of items.
Basic4android Search: File.ReadMap2... B4A Tutorial Download huge files with HttpUtils2 - Erel    Jul 25, 2021   (18 reactions)   tags: download, erel, download with progress ) RandomAccessFile As this is a modified version of OkHttpUtils2 you should not reference OkHttpUtils2...-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... '<--- download link dd.EventName = "dd" dd.Target = Me CallSubDelayed2... Job.Success) Job.Release End Sub Cancel a download: Sub btnCancel_Click CallSubDelayed2... B4J Question Map sorting - Erel (first post)    Jan 2, 2018 In almost all cases it is a mistake to use Map.GetKeyAt or GetValueAt. You should access the map based on the keys or with a For Each loop. If the order is important then you should probably switch to a List with custom types. You can serialize it with B4XSerializator. You can preserve the map order with File.ReadMap2 or by serializing it with B4XSerializator.... Page: 1   2   3   4   5   6   7   |