X-PRODID getting dumped in vcard as ezvcard 0.9.2

17 views
Skip to first unread message

Sachin Gupta

unread,
Feb 17, 2014, 1:40:09 AM2/17/14
to ez-vcard...@googlegroups.com
Hi,

For every vcard getting created, X-PRODID is getting dumped as ezvcard 0.9.2.
How can i modify this value? or disable this field?

I tried with:
vcard.addExtendedProperty("X-PRODID", "TEST");
but it generates a new one with TEST.

Regards
Sachin

Michael Angstadt

unread,
Feb 17, 2014, 10:25:44 AM2/17/14
to ez-vcard...@googlegroups.com
Hi Sachin,

Set the "addProdId" setting to "false" when writing the vCard, like so:

VCard vcard = new VCard();
vcard.setProdId(...);

VCardWriter writer = new VCardWriter(...);
writer.setAddProdId(false);
writer.write(vcard);

Regards,
Mike


--
You received this message because you are subscribed to the Google Groups "ez-vcard-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ez-vcard-discu...@googlegroups.com.
To post to this group, send email to ez-vcard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ez-vcard-discuss/52a9b03c-90c4-40f6-acac-8ea4c523e035%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages