Hi Everyone.
I am using the ContactUtils Class to read contacts from phone.
This is the code:
It needs something like 6-7 seconds to retrieve 208 contacts, with the app installed on phone from apk.
Is it normal or is it too slow?
The Sub CompilaContatti perform the creation of a panel with an imageview (filled with bmp) and a label (filled with c.Displayname) for every contact and then the panel is added to a XCustomListView.
Thanks for Your attention.
I am using the ContactUtils Class to read contacts from phone.
This is the code:
B4X:
For Each c As cuContact In cu.FindAllContacts(True)
bmp = cu.GetPhoto(c.Id)
If bmp.IsInitialized Then
CompilaContatti(c.Displayname)
Else
bmp = LoadBitmap(File.DirAssets,"felice.png")
CompilaContatti(c.Displayname)
End If
Next
Is it normal or is it too slow?
The Sub CompilaContatti perform the creation of a panel with an imageview (filled with bmp) and a label (filled with c.Displayname) for every contact and then the panel is added to a XCustomListView.
Thanks for Your attention.