Android Question Contactutils and large agendas

JordiCP

Expert
Licensed User
Longtime User
Don't know if the behaviour described here is due to some kind of error or a faulty device itself....but I am spending too many hours on it and am a little bit lost.

I am experiencing a strange behaviour in an app that uses contactutils

In the starter service, I initialize it and find the device's contacts to process them. Everything works as it should

B4X:
Sub Process_Globals
    Dim cu as ContactsUtils
end sub
Sub FindContacts
    cu.Initialize
    Dim cll As List = cu.FindAllContacts(True)
    Log(cu.size)
end sub

However, my customer is testing it and has 1033 contacts in his agenda. Some times the app can see 835 and others the whole 1033. No other random numbers: just one or the other. And the "missing" ones are always the same.

Mostly, the first time he installs a version, it gives the correct result, and sometimes the even second time. But then it gives the "bad" result (only finds 835 out of 1033 contacts) and keeps here


Any clue?
 
Top