Hello Forum,
I have the following problem:
With ContactUtils I receive several contacts phone numbers.
Sometimes it's just 1 phone number, sometimes there are 5 phone numbers and sometimes I there is no phone number.
Now I want to write this phone numbers in up to 4 fields (e.g .: EditText or in a table).
The first difficulty is already now, I get the phone number as ArrayList in this format [Phone Type = Business, Number = + 49-7171-XXXXXX, IsInitialized = true] and in the log file all 4 telephone numbers are shown, but how can I now write them into 4 separate EditText fields (see example)?
I have the following problem:
With ContactUtils I receive several contacts phone numbers.
Sometimes it's just 1 phone number, sometimes there are 5 phone numbers and sometimes I there is no phone number.
Now I want to write this phone numbers in up to 4 fields (e.g .: EditText or in a table).
The first difficulty is already now, I get the phone number as ArrayList in this format [Phone Type = Business, Number = + 49-7171-XXXXXX, IsInitialized = true] and in the log file all 4 telephone numbers are shown, but how can I now write them into 4 separate EditText fields (see example)?
B4X:
For Each phone As cuPhone In ContactsUtils1.GetPhones(Kontakt.Id)
Dim Kontakte_Telefon_1, Kontakte_Telefon_2, Kontakte_Telefon_3, Kontakte_Telefon_4 As String
Kontakte_Telefon_1 = ContactsUtils1.GetPhones(Kontakt.Id).Get(0)
Kontakte_Telefon_2 = ContactsUtils1.GetPhones(Kontakt.Id).Get(1)
Kontakte_Telefon_3 = ContactsUtils1.GetPhones(Kontakt.Id).Get(2)
Kontakte_Telefon_4 = ContactsUtils1.GetPhones(Kontakt.Id).Get(3)
Log(""&phone.Number&"")
Next