Android Question How to read each object from multi dimentional list

nazilabdulla

Member
Licensed User
Longtime User
let me explain scenario,

Private buffers As List
Sub streamer_RecordBuffer (Buffer() As Byte)
'collect the recording data
buffers.Add(Buffer)
End Sub

buffer is a list object

upload_2019-1-31_16-14-26.png



I want to read each final object from this treeview. how can do ? can u please provide better solution
 

DonManfred

Expert
Licensed User
Longtime User
It is your issue. What about doing it by yourself?
I do not have an example. I need to write one too. YOU have the DATA and can do it better. Additionally you are using b4a longer than me. I surely expect you know the language after 6 years.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
1. You should post errors as TEXT instead of such big pictures.
2. It is NOT a List, it is an Bytearray it seems

Hard to help without seeing your code.

Upload a sample project which shows the capturing of the data. In the IDE File->Export as zip
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
B4X:
    If buffers.Size > 0 Then
        For i=0 To buffers.Size-1
            Dim bytes() As Byte = buffers.Get(i)
' do work with the bytes...
        Next
    End If

or using bc as ByteConverter

B4X:
    If buffers.Size > 0 Then
        For i=0 To buffers.Size-1
            Dim bytes() As Byte = buffers.Get(i)
            Log(bc.HexFromBytes(bytes))
        Next
    End If
 
Last edited:
Upvote 0

nazilabdulla

Member
Licensed User
Longtime User
My requirement is to get final node object in treeview. Also create back to the same structure.
I would like to share my idea with you.
I want to record a voice, voice file seems to big size as well as readable to all.
Save and transport by text , in destination convert to original format.
 
Upvote 0

Myr0n

Active Member
Licensed User
Longtime User
Upvote 0
Top