signalapp / Flock

Private contact and calendar sync for Android.
https://signal.org/blog/flock
357 stars 80 forks source link

Cannot import local contacts #35

Closed micahflee closed 10 years ago

micahflee commented 10 years ago

Right now all of the contacts on my phone are stored locally and are not part of any remote account, but Flock's options for importing contacts only lets you import from remote accounts so I can't auto-import them all.

I can easily export all my contacts from the Contacts app into a .vcf file, but I can't open that file with Flock to import them either. I think allowing importing local contacts and allowing importing from .vcf files would both be useful for people moving to Flock who have just been managing contacts locally in the past.

rhodey commented 10 years ago

Thanks for the report @micahflee, I'm definitely interested in seeing this functionality added also. What app do you use to import and add contacts to Android without association to an account? I'm curious to try but will also need to try this out myself to develop a patch for this feature.

micahflee commented 10 years ago

It turns out it's fairly difficult to include local contacts in Android. At the moment my phone doesn't have a Google account associated with it at all, or Google Apps installed, so all contacts I create by default are local.

But the Contacts app lets you import/export .vcf files. So you can probably open Contacts, press Menu, choose Import/export and choose Export to storage to get all your contacts into .vcf format. Then you can try re-importing that, and hopefully it will give you an option to import them locally.

When I abandoned Google I spent like an hour and a half manually adding all my contacts into my phone locally before deleting them from my Google account.

rhodey commented 10 years ago

Cool, I'm guessing that if I temporarily delete my Google account from my phone and try the import from VCF file option Android won't say "no". Right now Flock finds contacts by first searching for all accounts and then asking the Contacts Provider for the contacts associated with each account. I'm guessing there will be some way of asking the Contacts Provider for contacts associated with no account, just need to import some contacts like this to see what they actually look like in the db.

Will hopefully be able to jump on this later this afternoon or tonight.

micahflee commented 10 years ago

Great, thanks so much! I've been wanting something like Flock for a really long time now, so glad to see it's here.

tx3eh8IUD1 commented 10 years ago

I see this is closed, but it still shows as open on GitHub?

rhodey commented 10 years ago

@tx3eh8IUD1 this issue should still be open. the github UI for referencing closed issues is weird but I think what we're seeing above is that I referenced this issue within issue 28 and that issue 28 has since been closed.