FileDocCategorySizeDatePackage
ContactStruct.javaAPI DocAndroid 1.5 API2873Wed May 06 22:41:56 BST 2009android.syncml.pim.vcard

ContactStruct

public class ContactStruct extends Object
The parameter class of VCardCreator. This class standy by the person-contact in Android system, we must use this class instance as parameter to transmit to VCardCreator so that create vCard string.

Fields Summary
public String
company
public String
name
MUST exist
public String
notes
maybe folding
public String
title
maybe folding
public byte[]
photoBytes
binary bytes of pic.
public String
photoType
mime_type col of images table
public List
phoneList
Only for GET. Use addPhoneList() to PUT.
public List
contactmethodList
Only for GET. Use addContactmethodList() to PUT.
Constructors Summary
Methods Summary
public voidaddContactmethod(java.lang.String kind, java.lang.String data, java.lang.String type, java.lang.String label)
Add a contactmethod info to contactmethodList.

param
data contact data
param
type type col of content://contacts/contact_methods

        if(contactmethodList == null)
            contactmethodList = new ArrayList<ContactMethod>();
        ContactMethod st = new ContactMethod();
        st.kind = kind;
        st.data = data;
        st.type = type;
        st.label = label;
        contactmethodList.add(st);
    
public voidaddPhone(java.lang.String data, java.lang.String type, java.lang.String label)
Add a phone info to phoneList.

param
data phone number
param
type type col of content://contacts/phones
param
label lable col of content://contacts/phones

        if(phoneList == null)
            phoneList = new ArrayList<PhoneData>();
        PhoneData st = new PhoneData();
        st.data = data;
        st.type = type;
        st.label = label;
        phoneList.add(st);