hello all
I am trying to update a contact phone with this function
Nothing happen
Public Sub UpdatePhone(Id As Long, PhoneNumber As String, PhoneType As String)
Dim v As ContentValues
v.Initialize
v.PutString("data1", PhoneNumber)
v.PutInteger("data2", GetKeyFromValue(phoneTypes, PhoneType, 7))
cr.Update( rawContactUri,v, "contact_id = ?", Array As String(Id))
End Sub
but with this line it's updating all the contact's phones
SetData("vnd.android.cursor.item/phone_v2", v , Id,True)
anyone can help
tank you
I am trying to update a contact phone with this function
Nothing happen
Public Sub UpdatePhone(Id As Long, PhoneNumber As String, PhoneType As String)
Dim v As ContentValues
v.Initialize
v.PutString("data1", PhoneNumber)
v.PutInteger("data2", GetKeyFromValue(phoneTypes, PhoneType, 7))
cr.Update( rawContactUri,v, "contact_id = ?", Array As String(Id))
End Sub
but with this line it's updating all the contact's phones
SetData("vnd.android.cursor.item/phone_v2", v , Id,True)
anyone can help
tank you