Hi, I'm trying to store a List with this code:
How can I read this data?
One of the many things I tried (without success) was this:
And also this
Any idea on how to read the array?
B4X:
list22.Add(Array As String(EditText2.Text,EditText1.Text))
Starter.kvs.Put("ContactList", list22)
How can I read this data?
One of the many things I tried (without success) was this:
B4X:
Dim mytypes2 As Object = Starter.kvs.Get("ContactList")
list22.Initialize2(mytypes2)
If Starter.kvs.ContainsKey("ContactList") Then
For i=0 To list22.Size-1
Dim mytypes3() As String = list22.Get(i)
friendlistview.AddSingleLine2(mytypes3(0) , mytypes3(1) )
Next
End If
And also this
B4X:
Dim mytypes2() As List = Starter.kvs.Get("ContactList")
If Starter.kvs.ContainsKey("ContactList") Then
For i=0 To list22.Size-1
friendlistview.AddSingleLine2(mytypes2(0).Get(i) , mytypes2(1).Get(i))
Next
End If
Any idea on how to read the array?