Android Question Remove item when client is disconnect

invocker

Active Member
How can remove item from tableview when client is disconnect
b4a client
B4X:
Dim Buffer1() As Byte
    Buffer1 = info.GetBytes("UTF8")

    AStreams.Write2(Buffer1, 0, Buffer1.Length)

b4j server

B4X:
 listclients.AddAll(opt)
            listclients=RemoveDuplicates(listclients)
             listclients.RemoveAt(0)
            Dim row(11) As Object 
            For Each s In listclients
            row(i)=s
            i=i+1   
            Next
            Table.Items.Add(row)
 
Solution
You need to have a list or some other collection with the details of the connected clients. Whenever this list is updated, clear the table and fill it again.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…