File. ReadMap2 (Dir As String, FileName As String, Map As Map) As MapSimilar to ReadMap. ReadMap2 adds the items to the given Map.By using ReadMap2 with a populated map you can force the items order as needed. Example: Dim m As Map m.Initialize m.Put("Item #1", "") m.Put("Item #2", "") m = File.ReadMap2(File.DirInternal, "settings.txt", m) 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 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... 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 Library [class] FileProvider - share files - Erel    Aug 16, 2021   (44 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... 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... 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 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... 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.... B4A Question ReadMap2 usage question - Erel (first post)    Jun 17, 2013 File.ReadMap(File.DirInternal,"questionmap.map").Size
questionmap.Put("Key word number " &lp,"")
Next
questionmap = File.ReadMap2(File.DirInternal... Page: 1   2   3   4   5   6   7   |