/android/import-contacts

To get this branch, use:
bzr branch http://bzr.ed.am/android/import-contacts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
* VcardImporter.Vcard.finaliseParsing() should be renamed to finalise() to
	override Importer.ContactData.finalise(), if Java will permit us to do that
	(fnaliseParsing() throws stuff that finalise() doesn't), and should call
	super.finalise().
* rename Importer.isImportRequired() to checkForDuplicate() and make it private.
	This should be called from Importer.importContact(), which should then call
	skipContact() to update the UI and return if checkForDuplicate() returns
	false.
* ContactData.finalise should create a ContactsCache.CacheIdentifier and throw
	ContactCannotBeIdentifiedException() if that fails, which can be picked up
	in Vcard.finalise(). Importer.importContact() and the renamed
	Importer.checkForDuplicates() should use the ContactData's CacheIdentifier
	and not create their own. This will also ensure that ContactData.finalise()
	has been correctly called (or the identifier would be null).
* import a crap-load of contacts before release!
* change some public final static ints, that aren't really consts, in to enums
* create a back-end object to read/write to android. This can be overridden to
	use the new ContractsContacts API.
* add warnings when email addresses, phone numbers, etc, fail sanitisation (and
	are ignored) during the import
* add base64 decoding to support (even if to ignore) vcards with image data
* possible bug: when displaying "aborting import" toaster, make sure the back
	button is enabled and the abort button is hidden (as if abort were pressed)
	since this can happen if, say, the alarm goes off.
* add facility to be asked whether to import all contacts, not just those that
	are duplicates.
* in the long term, we need to save/restore state from doit/importer