1

I am working in a project that will backup all contacts as a .vcf file in sdcard. At this time, I am able to get all information of a contact ( including number, emails, birthday etc.... ).

But I want to get specific information from contacts. (ex: just number).

How can I do it?

I am trying to modify these codes... but cannot solve my problem. Please help.

Community
  • 1
  • 1

2 Answers2

0

To get contacts information, see this solution: How to get contact number from contactlist in Android?

As to saving in .vcf file please provide some code.

Community
  • 1
  • 1
QArea
  • 4,955
  • 1
  • 12
  • 22
0

ez-vcard can parse vCard files (disclaimer: I am the author xD )

Reader reader = ...
List<VCard> vcards = Ezvcard.parse(reader).all();
reader.close();
Michael
  • 34,873
  • 17
  • 75
  • 109