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