Public Sub AddPostalAddress(Id As Long, PostalAddr As String, PostalAddrType As String)
Dim v As ContentValues
v.Initialize
v.PutString("data1", PostalAddr)
v.PutInteger("data2", GetKeyFromValue(PostalAddtrTypes, PostalAddrType, 2))
SetData("vnd.android.cursor.item/StructuredPostal", v, Id, False)
End Sub
Sub AddPhoto(ID As Long, PhotoBitMap As Bitmap)
Dim Out As OutputStream
Dim bytes() As Byte
Out.InitializeToBytesArray(1000)
bytes = Out.ToBytesArray
PhotoBitMap.WriteToStream(Out,100,"PNG")
Out.Close
Dim v As ContentValues
v.Initialize
v.PutBytes("data15", bytes)
SetData("vnd.android.cursor.item/photo", v, ID, False)
End Sub