Add TYPE=OTHER to Address for Apple VCards

14 views
Skip to first unread message

pa...@donnapaul.net

unread,
Jan 7, 2016, 10:53:34 PM1/7/16
to ez-vcard-discuss
Apple supports/exports TYPE=OTHER for Address, Email, Telephone, (and maybe more?).
How do I 'extend' Address/etc. to read/write/retrieve/etc. such a change?

Thanks.
Paul

Mike Angstadt

unread,
Jan 8, 2016, 9:21:42 AM1/8/16
to ez-vcard...@googlegroups.com
Hi Paul,

You can call the "AddressType.get()" method to define a custom type value.  Same thing with "EmailType" and "TelephoneType".

Address adr = new Address();
adr.addType(AddressType.get("OTHER"));

-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/2061eff0-5a75-4684-ba87-0fd1ee7edbdb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Mike Angstadt
Assistant Electronic Resources Librarian, Computer Lab
Montgomery County-Norristown Public Library
1001 Powell Street | Norristown, PA 19401

Any views or opinions expressed in this e-mail are those of the sender and not necessarily coincide with those of the organization.The information in this email is confidential. The contents may not be disclosed or used by anyone other than the addressee. If you are not the intended recipient, please notify us immediately at the above address.

pa...@donnapaul.net

unread,
Jan 12, 2016, 9:05:05 AM1/12/16
to ez-vcard...@googlegroups.com
Thanks for the quick reply.
I didn't actually understand the .get() function.

You did a great service with your library.

Thanks a bunch!

Paul
You received this message because you are subscribed to a topic in the Google Groups "ez-vcard-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ez-vcard-discuss/E-cI73h4PbY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ez-vcard-discu...@googlegroups.com.

To post to this group, send email to ez-vcard...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages