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

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -