title: Android AccountManager and SyncManager implementation caused only Name field to appear in Add/Edit Contact screen
body: <p>We implemented Android's Account Manager and Sync Manager api to create contact sync. But when user selects our account while adding contact, it only displays Name fields and all other fields disappear.</p>
  
  <p>Here is what I have in my manifest</p>
  
  <pre><code>&lt;activity android:name=".AuthenticatorActivity" android:label="iAnywhere Login"
              android:theme="@android:style/Theme.Dialog"
              android:excludeFromRecents="true"&gt;&lt;/activity&gt;
          &lt;service android:name=".accounts.AuthenticationService"&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.accounts.AccountAuthenticator"&gt;&lt;/action&gt;
              &lt;/intent-filter&gt;
              &lt;meta-data android:name="android.accounts.AccountAuthenticator"
                  android:resource="@xml/authenticator"&gt;
  
              &lt;/meta-data&gt;
          &lt;/service&gt;
  
          &lt;service
              android:name=".accounts.SyncService"
              android:exported="true"&gt;
              &lt;intent-filter&gt;
                  &lt;action
                      android:name="android.content.SyncAdapter" /&gt;
              &lt;/intent-filter&gt;
              &lt;meta-data
                  android:name="android.content.SyncAdapter"
                  android:resource="@xml/syncadapter" /&gt;
          &lt;/service&gt;
  </code></pre>
  
  <p>This is what I have in my syncadapter.xml and authenticator.xml</p>
  
  
      
  
  
  
  <pre><code>&lt;sync-adapter xmlns:android="http://schemas.android.com/apk/res/android"
      android:contentAuthority="com.android.contacts"
      android:accountType="com.rahul.utility.contacts"
  /&gt;
  </code></pre>
  
  <p>Have seen people talk about this kind of issue while adding custom fields that it is a bug in Contact application. I also checked out the code of Exchange Email client in Android source code and they seems to be doing exactly same as what I did, but still when you select Add Contact for an Exchange account it shows up all the fields in the contact.</p>