array

  1. 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?
  2. 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: https://www.javatpoint.com/tim-sort I had some trouble getting this to work, but thanks to Jordi CP, this has all been sorted. Using...
  3. 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
  4. 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...
  5. 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...
  6. K

    Android Question NumberFormatException error

    numberformatexception error in php base64_encode string my php array :(ArrayList) [{id=1...
  7. 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...
  8. 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...
  9. 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...
Top