parsing - Ez-Vcard retrieval of email and address -
there inbuilt functions in getting structuredname , formattedname. email there no such method. using maven project , have added dependency in pom.xml.
<dependency> <groupid>com.googlecode.ez-vcard</groupid> <artifactid>ez-vcard</artifactid> <version>0.9.4</version> </dependency>
vcard.getformattedname().getvalue()
is working fine , fetching name.
vcard.getemail().getvalue()
is not working. there library missing? or method fetch details vcard.
i using fetching telephone details , null. please advice.
for(telephone tel: vcard.gettelephonenumbers()) { string number=tel.gettext(); }
thanks arun
use getemails()
method, so:
for (email email : vcard.getemails()){ string value = email.getvalue(); }
Comments
Post a Comment