srikanthtalasila / ez-vcard

Automatically exported from code.google.com/p/ez-vcard
0 stars 0 forks source link

Not able to fetch the details of email #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output?
getEmail should return email

What is the actual output?
No such function

What version of ez-vcard are you using?
0.9.4

What version of Java are you using?
1.7 jdk

Please provide any additional information below.

Original issue reported on code.google.com by arun1989...@gmail.com on 26 Jun 2014 at 6:20

GoogleCodeExporter commented 9 years ago
To get a vCard's email addresses, use the "getEmails()" method.  Because a 
vCard can contain multiple emails addresses, this method returns a List.  So, 
to get the value of the first email address, you would type something like this:

vcard.getEmails().get(0).getValue()

Thanks for using ez-vcard!

Original comment by mike.angstadt on 26 Jun 2014 at 11:54

GoogleCodeExporter commented 9 years ago
Hi Team,

I am facing two issues in fetching the telephone number details from vcard.

for(Telephone tel: vcard.getTelephoneNumbers()){
String number=tel.getText();
}

I am using this to get the telephone number. It is always giving the value
null. I am also not able to fetch the details for the type of telephone
also from the Vcard. Please advice.

Original comment by arun1989...@gmail.com on 27 Jun 2014 at 8:03

GoogleCodeExporter commented 9 years ago
In vCard version 4.0, TEL properties can have either a text value or a URI 
value.  If "getText()" returns null, try calling "getUri()".  To get the TYPE 
parameter value, call "getTypes()".

Original comment by mike.angstadt on 27 Jun 2014 at 7:20