Contacts list

fanfalveto

Active Member
Licensed User
Longtime User
I try this with library fgcontacts
B4X:
 Dim fgContacts1 As fgContacts
    Dim fgContact1 As fgContact
    Dim listOfContacts As List
    fgContacts1.Initialize   
    listOfContacts.Initialize
    listOfContacts=fgContacts1.GetAllContacts(True, False)
    For i = 0 To listOfContacts.Size - 1
      fgContact1=listOfContacts.Get(i)
      Log(fgContact1)
      Next
and i can´t see the contacts.
Also i try with
B4X:
Dim c As Contact
Dim cs As Contacts2
  Dim l As List
  l = cs.GetAll(False,False)
  For i = 0 To l.Size - 1
    c = l.Get(i)
    Log(c)   
  Next
and don´t work.
Sure i do somethirng wrong but yerterday and today i read the forum and i don´t know.
Please can you help me?
Thanks
 

fanfalveto

Active Member
Licensed User
Longtime User
log error with this code
B4X:
   at fg.Contacts.FgContacts.GetPhoneNumberByID(FgContacts.java:142)
i do that in and now runs ok
B4X:
Dim c As Contact
Dim cs As Contacts2
  Dim l As List
  l = cs.GetAll(False,False)
  For i = 0 To l.Size - 1
    c = l.Get(i)
    Log(c)    
  Next
i put this code in another sub and now work.
tahnk you
 
Upvote 0
Top