hi,

which SDK version are you using? 1.5? 1.6? 2.0? 2.1?
there were some changes to the contact api from 1.6 to 2.0...

and maybe give a short snippet of how you insert the contacts to the database. maybe you do some (wrong) very time-consuming database-queries or you just missed something, because i have seen my code using the contact db implementation run way faster.. even with vcard-parsing & full blown contacts...on the htc magic

cheers



cpphool schrieb:
Hi!

I have some questions concerning importing contacts to the device,
which is extremely slow.

First of all, if you delete all your contacts, google sync will
restore it very quickly. However, when my app is adding contacts to
the device, it's very slow (a few contacts per second). Even if I add
almost empty contacts (with name only), it is a time-consuming
process.

If I turn google sync off, importing 5000 contacts can take 1-2 hours
(on HTC Magic). When google sync is on it can take up to 24hours. And
this happens despite the fact, that application for the whole time is
in the foreground, device is connected to charger and screen is on. I
checked the logcat to make sure my app is adding the contacts the
whole time, and it is.

I tried different methods and different devices. The results differ of
course, yet manually adding contacts is always significantly slower
that google sync. Is there any way that I can speed up the process? So
that importing 5000 contacts will take less than an hour.


--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to