1. S

    B4J Question Items from Javaobject in Log but not in Listview

    Hello, The below code is checking files in a selected folder and uses the Java code I found here in the forum. Why do I see the JavaObject contents as Items in the Log but not in the Listview? Perhaps I'm doing something wrong, could someone point me how to fix this? Sub GetTheFolderContents...
  2. N

    Android Question 9x9 Grids using 2D array

    Hello everyone, I'm currently making a 9x9 grid using 2d array for my school project on b4a. I always get a error when I'm utilizing it. Is there any way to make one using 2d array?
  3. epiCode

    B4J Question Optimal way to store Arrays as CSV?

    I do not have enough experience with B4J. I am currently saving a list of arrays having multiple string items as a CSV like this: 1. Iterate over the list having arrays 2. Read array elements one by one 3. Create a string with array elements and commas in between 4. Add that string to new list...
  4. S

    Android Question How to fill B4Xcombobox from JSON data (JSON to ARRAY) ?

    Hello, I'm trying to get a JSON data to a dropdown B4Xcombobox, but not succeeding. I also tried to change the maptoarray via a sub found on the forum. Created the json parser via the online tool. JSON is simple like...
  5. H

    Android Question Get elements of one array which are not present in another

    Hi friends, As I said in the title, I need to get elements of an array which are not in another. example: arr1 = {2, 3, 4} arr2 = {1, 2, 3, 4, 5} output = {1, 5} thanks for help.
  6. 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}...
  7. M

    iOS Question Convert String representing bytes in actual bytes

    Hi everyone... i've this string 0x33303a43363a46373a30303a39353a3641 that represents some bytes.. how can i transform it in actual bytes? i tried with for loops, byteconverter, arrays etc... nothing works like I need...
  8. M

    Android Question Equivalent of arraybuffer.slice(start, end) in B4X

    Hi everyone, i'm trying to porting some javascript (react) code into B4A, but the data.slice(from, to) function is used to create blocks of 512bytes from a larger file. What is the equivalent in B4X? Thanks in advance
  9. epiCode

    Android Question Array in List

    memtable is list storing array at location Index Dim StrArr() As List = memtable.get(Index) lbheading.Text=StrArr(vheading) <-- causes java.lang.RuntimeException: Method: Get not found in: java.lang.Integer vheading is integer with value 5 however watch expression...
  10. B

    Android Question 2D Array With Different Column Numbers?

    Hi, I am trying to make a 2d array containing data like the following: (("00", "01", "02"), ("10", "11")) So that the 1st row will have 3 columns and the 2nd row will have 2. How would I do that? Otherwise, is there a better way to group some arrays of different sizes together with indices?
  11. R

    Android Code Snippet [B4X] Fast and stable 1D array index sorts

    These are for 1D arrays, type specific and stable sorts. There are 4 sets for Int, Double, Long and String arrays. They are converted from C code I found here: I had some trouble getting this to work, but thanks to Jordi CP, this has all been sorted. Using...
  12. W

    B4J Question Array of buttons

    I have an array of 24 buttons . If I give them identical event names in designer can I handle their click events in a single event handler . If so how do I pass the name of the button to this event handler so it can tell which button generated the event ? Any help gratefully received
  13. M

    Wish Astream.WriteNoBoundsCheck - Avoid checking array bounds

    In working out using the ESP32 Camera (see tutorial here), I initially struggled with sending a buffer of data over 32KB using Astream.Write/Write2. For example, a picture taken by the camera at highest res (1600X1200 pixels) could easily be over 300KB. The camera returns a pointer to the...
  14. S

    B4A Class Get value from complex structure (combination of map, list, array)

    Hello, This is a module code to retrieve value from complex structure (combination of list, map, array and primitives types). Give the path with a dot (.) separator to get the value or the default value if not accessible. example : m=createmap("Name":"John" ,"Friends":array as...
  15. K

    Android Question NumberFormatException error

    numberformatexception error in php base64_encode string my php array :(ArrayList) [{id=1...
  16. A

    Android Question Array of text boxes or list

    Hello, I am trying to make an activity with on a horizontal line 1 label and 3 text boxes. the label just contains a number. Of the 3 text boxes, two must be filled in. When a enter is given, the third will be filled in and three new textboxes will appear. In the end, there will be a long...
  17. rleiman

    Android Question ExoPlayer setting the volume level

    Nice library but it needs a more detailed tutorial. I tried to set the volume like this: exoPlayer.Volume(.5) but I get an error telling me it expects an array. I have not used arrays yet so I found this example: Creates a single dimension array of the specified type. The syntax is: Array...
  18. Germán Arduino

    Android Question How to check duplicates in array

    Hi Guys: I must calculate 10 random numbers between 00 and 99 and populate an array with such ten numbers, but I need to take care that the final array do not contains duplicates values. Each element of the array must be an unique value between 00 and 99. Exist some function (as in other...