Third-party jar package for manipulating VCF card information: Ez-vcard

Source: Internet
Author: User
Tags vcard

Ez-vcard

Https://github.com/mangstadt/ez-vcard

Currently the latest version has been updated to 0.9.8

When I first used the jar, it was 0.9.3, and it was a very awkward question.

is when you convert your contacts to a VCF card file,

Import the contacts using the native vcf of the Android phone,

The result is no support for Avatar parsing.

Happily, the current version of 0.9.8 has fixed this issue.

Full contact information is transferred through the VCF format, no longer a dream

Thanks to the author of this open source project, I hope the project is becoming more and more perfect.

For information on how to use this jar package, you can view the introduction and examples APIs in the Readme.md file on GitHub .

String str = "begin:vcard\r\n" + "version:4.0\r\n" + "N:DOE; Jonathan;; mr;\r\n "+" Fn:john doe\r\n "+" end:vcard\r\n "; vcard vcard = ezvcard.parse (str). First (); String fullName = Vcard.getformattedname (). GetValue (); String lastName = Vcard.getstructuredname (). getfamily ();

vcard vcard = new vcard (); Structuredname n = new Structuredname (), n.setfamily ("Doe"), N.setgiven ("Jonathan"), N.addprefix ("Mr"); Vcard.setstructuredname (n); Vcard.setformattedname ("John Doe"); String str = ezvcard.write (vcard). Version (VCARDVERSION.V4_0). Go ();

Third-party jar package for manipulating VCF card information: Ez-vcard

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.