Answer the question
In order to leave comments, you need to log in
Transfer contacts from Philips Xenium X501 phone to HTC Desire SV?
I decided to write a question and immediately answer, because the solution already exists and may be useful to someone, someone will google it.
The beauty is that an attempt to transfer contacts from Philips via bluetooth was unsuccessful. There is no way to select all contacts and transfer them via bluetooth to another device. There is only an opportunity to throw one contact in vcard format (which is not very convenient and long). When I connected via bluetooth to Philips from HTC for import, the latter began to declare that it needed a WiFi connection with the first.
In the end, I found the option “Reserving contacts” under the “Organizer” menu item and got Contacts_backup.udx. I transferred it to HTC, tried to import it, but nothing happened. Then I opened Contacts_backup.udx and saw that this is a regular xml file
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE DataExchangeInfo SYSTEM "udx.dtd">
...
<vCard>
<vCardInfo>
<Sequence>тут какой-то порядковый номер видимо</Sequence>
<vCardField>
<vCardLocation>тут видимо где находился контакт - в телефоне или в сим</vCardLocation>
<N>тут имя в непонятном человеческому глазу виде</N>
<TEL>тут номер телефона</TEL>
</vCardField>
...
<?php
$content = file_get_contents('./Contacts_backup.udx');
preg_match_all('/<vCardInfo>.*<\/vCardInfo>/imsU', $content, $items);
$pattern = 'BEGIN:VCARD
VERSION:2.1
N;CHARSET=UTF-8;ENCODING=QUOTED-PRINTABLE:{%NAME%}.
TEL;CELL:{%PHONE%}
END:VCARD
';
foreach($items[0] as $key => $item){
preg_match('/<N>(.*)<\/N>/imsU', $item, $name);
preg_match('/<TEL>(.*)<\/TEL>/imsU', $item, $phone);
$output = $pattern;
$output = str_replace('{%NAME%}', !empty($name[1]) ? $name[1] : '', $output);
$output = str_replace('{%PHONE%}', !empty($phone[1]) ? $phone[1] : '', $output);
$fd = fopen('./output/vcard'.$key.'.vcf','w+');
fwrite($fd, $output);
fclose($fd);
}
Answer the question
In order to leave comments, you need to log in
HTC Desire SV is android, parse your xml to csv and upload via google account d.pr/i/8EJz
MTS has a "second memory" service! I think that other operators have something similar.
There is a utility for android to import contacts in UDX format - goo.gl/nmZKKi
program for windows https://drive.google.com/uc?export=download&confir...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question