map

  1. yo3ggx

    Android Question XML -> MAP issue

    This is just a simplified example to explain the issue I have. I'm using XML2MAP to covert a simple xml file: <root> <config> <param1>val11</param1> <param2>val12</param2> <param3>val13</param3> </config> <config> <param1>val21</param1>...
  2. M

    Android Question [B4X] Update value of an item in CustomListView

    Hi everyone, is it possibile to update the value of an item of a custom list view? because i do not see any method for this, the only way i figured out is to: save the view using .GetPanel save the value using .GetValue update the value replace the item using .ReplaceAt and using the new value...
  3. red30

    iOS Question Not possible to add Null value to map

    Map.Put("temp",Null) In B4i, it is not possible to add a Null value to a map. Why? It is possible in B4A and B4J, why can't I do it in B4i? Next, this map is converted to json and some of the points must contain a null value (this is required by the server to which I send it), but I cannot do...
  4. M

    Android Question Save Map with custom Type to file

    Hello everyone. I've a Map, that will be saved using File.WriteMap Dim m1 As Map = CreateMap("Version": AppVersion, _ "Thing1": -1, _ "Thing2": "", _ "Thing3": "", _...
  5. toby

    Android Code Snippet Convert map to array

    public Sub mapToArray(m As Map) As Object() Dim arr(m.Size * 2) As Object 'array size is double of the map because both keys and values are elements Dim i As Int=0 Dim value As Object For Each key As Object In m.Keys value=m.Get(key) LogColor($"key=${key}...
  6. M

    Spanish Libreria mapbox

    Hola, tengo unos proyectos con mapas que usan la libreria de GoogleMaps, y quisiera saber si alguno conoce alguna libreria para usar los mapas de mapbox Muchas gracias
  7. Xela

    Italian Recupero dati da B4XOrderedMap

    Salve a tutti Da un po' di tempo sto riscontrando problemi con il recupero di dati da una Map. https://www.b4x.com/android/forum/threads/map-collection-the-most-useful-collection.60304/ Come da prassi (mia) ho lasciato "riposare" il problema, di tanto in tanto lo riprendevo in mano pensando che...
  8. phongka

    Android Question Help me. string array to map

    i have to array in array. example: [{"kq":"OKPOST","id111":"aaa"},{"kq":"OKPOST","id111":"aaa"}] How to iterate through each element string ....thank you...
  9. S

    B4J Library Open street map viewer

    see https://www.b4x.com/android/forum/threads/open-street-map-viewer-gps.127827/ a B4Xlib for B4A and B4J to view Open Street Map
  10. S

    B4A Class Open Street Map viewer - GPS

    Hi, This b4Xlib contains a custom view (cvMap) which can display Open Street Map. The tiles are retrieved from the internet and cached in a database. You can add shapes and images on the map. UI : - Lat/lng Center of the map - Zoom Level - Compass Direction with rotation - Scale - Button...
  11. amorosik

    Italian [B4J] Mappa tipo Google Map - come fare un auto-extend su piu' marker ?

    Dispongo di una mappa, tipo esempio JGoogleMap Due o piu' marker dentro Come fare per avere uno zoom al massimo possibile compatibilmente con la visualizzazione dei marker dentro la mappa? Il classico auto-extend dei programmi cad o funzione simile per capirci
  12. B

    Android Question How can I work with maps values?

    Hello everyone, firstly I have to tell you that I'm a beginner so please, be patient. Here is my problem, in my code, I have a map and I need to a sum with these values. Here is my code ListaArticulos.Initialize NewArt.Initialize NewArt.Put("nombre","Harina COLOLO 0000 1kg.")...
  13. Hadi57

    Android Question how to get a List from Map after write and read the map.

    Probably a beginner problem. but i can't get a list in map after Write it and Read again. i get this error message: java.lang.ClassCastException: java.lang.String cannot be cast to java.util.List Dim mapSetting As Map mapSetting.Initialize Dim List1 As List...
  14. OliverA

    Android Code Snippet [B4X] UrlEncodeMap

    ' UrlEncodeMap(input As Map) As String ' Converts a Map's keys/values to a URL encoded parameter string ' Following library is used ' B4J - jStringUtils ' B4A - StringUtils ' B4i - iStringUtils Sub UrlEncodeMap(input As Map) As String Dim sb As StringBuilder Dim su As StringUtils...
  15. M

    iOS Question Copy a Map to another oen

    Hi in B4i how can I copy a map into another? Given the fact the function "GetKeyAt" and "GetValueAt" doens't exists? Thanks!
  16. LucaMs

    Android Question Strange problem with a Map

    Test project attached (its design also is strange, but it is similar to my real project). Error occurred on line: 37 (Main) Line 37 is an empty line. java.util.NoSuchElementException at java.util.LinkedHashMap$LinkedHashIterator.nextNode(LinkedHashMap.java:759)
  17. KMatle

    B4J Tutorial [B4x] Exchange Data via OkHttpUtils and php (or other platforms) via lists, maps, arrays, etc.

    I made 7 examples how to exchange data between B4x apps and php. I use the POSTSTRING method as it is simple, secure (get-methods will be logged with the data autmatically on the server, post-methods not), strings can be formatted very easy (JSON) and en-/decrypted (not included but see my other...
  18. OliverA

    B4J Question For Each/Next List of Maps and references. What am I misunderstanding?

    B4J Version: 7.51 OS Platfrom: Win10 Pro (1903) JDK: 11.0.1 downloaded from B4X's site Here's the setup. I'm creating a list of maps that contain x, y values (note: in my case, the map contains way more info, I'm just simplifying it here to show the issue I'm running into) Dim largestX As...
  19. TelKel81

    Android Question Is there a way to create/return an explicit cast of a List/Map.

    Ex: Dim myLife as Map (As yearstring, As Wine) If myLife.Get("2019").IsTonsOfWine = True Then... Because I haven't found any with the IDE or in the forums. That would be a huuuuuuuuuuuuuuuuuuuuuuuge time saver I believe. Thanks !
  20. DroidLyon

    Android Question B4XOrderedMap / Map - putting a type object problem

    Hi people I've used the map collection storing "Type Object" values many times without issue and then hit a problem yesterday trying to store(put) a Type object into a B4XOrderedMap. It also fails with a standard Map... Hence I suspect a dumbass programming error :confused: So I declare a type...
Top