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...
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?
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...
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...
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.
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}...
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...
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
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...
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?
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...
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
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...
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...
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...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.