I created a custom account_type (com.axonsystem.kangoosave) and it works fine. Also, when I create contacts under this property account_type programmatically, in the Contacts application (when I edit a contact) Android correctly displays my user type.
This is my sync adapter
<sync-adapter xmlns:android="http://schemas.android.com/apk/res/android"
android:contentAuthority="com.android.contacts"
android:accountType="com.axonsystem.kangoosave"
android:userVisible="true"
android:allowParallelSyncs="false"
android:isAlwaysSyncable="true"
android:supportsUploading="false" />
And my service providing the SyncAdapter
<service
android:name="com.axonsystem.kangoosave.services.AccountSyncService"
android:exported="true"
android:enabled="true"
android:process=":sync">
<intent-filter>
<action android:name="android.content.SyncAdapter"/>
</intent-filter>
<meta-data android:name="android.content.SyncAdapter"
android:resource="@xml/syncadapter"/>
<meta-data android:name="android.provider.CONTACTS_STRUCTURE"
android:resource="@xml/contacts" />
</service>
My authenticator account
<?xml version="1.0" encoding="utf-8"?>
<account-authenticator xmlns:android="http://schemas.android.com/apk/res/android"
android:accountType="com.axonsystem.kangoosave"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:smallIcon="@drawable/ic_launcher"
android:accountPreferences="@xml/account_preferences"/>
Now I want my custom type to appear in the "Contacts" section when creating a new contact (for example, Google accounts, etc.) even in the "Contacts to display" menu. Is it possible? Does anyone have any info on this? I can not succeed in this matter.
Thank you in advance