Hello everyone, does any one know how to create custom fields with this class, i have a list of contacts i need to download from an online service which dumps the data in CSV format, i have all this part figured out, but i need to add all this information to the device's contacts, i need to add 3 custom fields Player 1, Player 2, and Player 3, is there a way to create, i've tried to write a function copying the code to add Notes from the class but it doesn't seem to work.
B4X:
'Adds a player name to the custom field Player
Public Sub AddPlayer(Id As Long, player As String)
Dim v As ContentValues
v.Initialize
v.PutString("data1", player)
SetData("vnd.android.cursor.item/player", v, Id, True)
End Sub
Check, where your contact is stored. If it is stored on your SIM, then you can't add any field. To add a field, you must export this contact to your phone first.
No, that is the class i'am using, what i'm looking for is for a way to create custom fields on the contacts, i 'am already using that class to sync the contacts i download from an online service to the phone's contacts.