Refactor vCard importer so that it uses Service during the actual import.
This is for makeing the importer torelate various troubles around Activity using Thread.
Screen orientation breaks the Activity while the import is on its way, and the
regenerated Activity cannot see the status of the previous import.
With using Service, now we have to let vCard importer re-entrant toward multiple import request.
I confirmed the newly added code works fine, but we may have bugs around them.
One significant bug is that (again) we cannot import a big vCard via Uri whose permission is
temporarily guaranteed by its provider (e.g. Email's AttachmentProvider).
Bug: 2523624
Bug: 2158329
Bug: 2572275
Change-Id: I961aecc0848176bdbcab6527a25f60352d957ee0
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index a7eec1d..d920701 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -463,6 +463,10 @@
</intent-filter>
</activity>
+ <service
+ android:name=".ImportVCardService"
+ android:exported="false" />
+
<activity android:name=".ExportVCardActivity"
android:theme="@style/BackgroundOnly" />
</application>