vcard format
Probably vcf stands for VCard Format. This is mostly about getting address information from an android phone to a usable address list.
getting via usb
Easiest way is to connect via usb and export the list :
On android go to :
- Dialler
- Contacts
- Menu
- Import/Export
- Export to storage
It says where it will put the .vcf file. Remember it, in my case it was
| changetitle | |
|---|---|
Also, be sure to mark what you want to save. It looks like all are selected (V) but without selection no file is generated.
To get the file make your sdcard reachable :
- Setting
- Developer settings
- Networking, Select usb configuration
- Media transfer protocol
You can see the sdcard appearing when selecting. Now browse to sdcard and copy the file
vcf2csv
The format of the csv file is readable but not very practical :
So you can use thus tool to at least make .csv from this link : _[https://sourceforge.net/project/platformdownload.php?group_id=223241]{.title-ref}
Unzip it, there is an executable inside.
| changetitle | |
|---|---|
It won't handle these strings very well :
| changetitle | |
|---|---|
Ok .. this is enough to build my own parser, because this things sucks.
tools/vcfparser
A small practice prog to overcome problems with vcf2csv, it has been kept very simple, skipping all lines that are not in the colon (:) format.
- When BEGIN is encountered a new Card is created
- FN: is put into Card.name
- TEL;CELL: is put into Card.number
- EMAIL;PREF: is put into Card.email
- When END is encountered the Cars is added to an ArrayList
So it parses email, but in the output i only print name,number but it is of course no rocket science to alter it to include email.
Call with :
| changetitle | |
|---|---|