Closed hithamHL closed 4 years ago
Hi mangstadt i want to open and show vcard file in a listview but when do that the method all() only show one contact
List<VCard> vcards = Ezvcard.parse(file).all(); int Vsize=vcards.size(); for (VCard vcard : vcards) { // System.out.println("Name: " + vcard.getFormattedName().getValue()); for (int i = 0; i<=Vsize; i++){ contactName = vcard.getFormattedName().getValue()+":" +String.valueOf(i) ; list_vcard.contact_name_Vcard = contactName; // System.out.println("Telephone numbers:"); for (Telephone tel : vcard.getTelephoneNumbers()) { // System.out.println(tel.getTypes() + ": " + tel.getText()); contatNumber = tel.getText(); list_vcard.contact_number_Vcard = contatNumber; } vcardArrayList.add(list_vcard); } }
Please post the contents of the vCard file.
Hi mangstadt i want to open and show vcard file in a listview but when do that the method all() only show one contact