研究了几天VCARD3.0,发现网上资料太少,特别是在Android平台的。特此记录。
public static void main(String[] args) throws Exception {
OutputStreamWriter writer = new OutputStreamWriter(
new FileOutputStream("example.vcard"), "UTF-8");
VCardComposer composer = new VCardComposer();
//create a contact
ContactStruct contact1 = new ContactStruct();
contact1.name = "WuYusheng";
contact1.company = "The Company";
contact1.addPhone(Contacts.Phones.TYPE_MOBILE, "
输出名片类范例:
public class WriteExample {