qinglixiao / vcardio

Automatically exported from code.google.com/p/vcardio
0 stars 0 forks source link

Support HTC Hero "contact type" field #24

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

What is the expected output? What do you see instead?

I’ am able to import contacts from my .vcf file in different groups, but
always the new created contacts have contact_type set to "Google".
Is it any solution to import contacts from .vcf files with contact type
"Phone" ?

regards

What version of the product are you using? On what operating system?

I am using an HTC Hero (Android 1.5).

Please provide any additional information below.

Original issue reported on code.google.com by adrian.b...@gmail.com on 12 Oct 2009 at 8:21

GoogleCodeExporter commented 9 years ago
It seems the HTC Hero has a modified contacts app that has an additional 
"contact
type" field. Unfortunately, I don't have a Hero and the emulator doesn't have 
the
modified app, so I can't debug this. It's possible that any contact imported 
through
the Google Contacts provider API is automatically set to type "Google".

If someone with a rooted Hero can send me a "contacts.db" file it might help.

Original comment by duckt...@gmail.com on 17 Oct 2009 at 3:25

GoogleCodeExporter commented 9 years ago

Original comment by duckt...@gmail.com on 17 Oct 2009 at 3:37

GoogleCodeExporter commented 9 years ago
Issue 33 has been merged into this issue.

Original comment by duckt...@gmail.com on 1 Nov 2009 at 8:46

GoogleCodeExporter commented 9 years ago
Hi, contacts.db file is attached. It contains two contacts, a google contact 
and a
phone contact. As far as I can see, it should be very simple to convert a google
contact into a phone contact using sqlite3:

UPDATE people SET _sync_account = "" WHERE _id == 1;
UPDATE people SET extra_group = 2 WHERE _id == 1;
UPDATE people SET firstName = name WHERE _id == 1;

As far as I can see, _sync_account and extra_group are the only difference 
between
those two contact types. I could successfully convert a google contact into a 
phone
contact using these three commands on my contacts.db.

Sorry for the bad English, I am not a native speaker. I hope this gets you 
started
resolving the issue. Please contact me if you need further help with this issue.
Thanks for developing open source!

Original comment by mibaue...@googlemail.com on 1 Feb 2010 at 6:23

Attachments: