title: Can't access preferences set in account-authenticator in Android
body: <p>I'm settings a preference in a checkbox via an account-authenticator:</p>
  
  <pre><code>Intent settingsIntent = new Intent("android.settings.ACCOUNT_SYNC_SETTINGS");
  settingsIntent.putExtra("account", mActiveAccount);
  startActivityForResult(settingsIntent, ACCOUNT_COMPLETE);
  </code></pre>
  
  <p>with the xml of:</p>
  
  <pre><code>&lt;account-authenticator xmlns:android="http://schemas.android.com/apk/res/android"
  android:accountType="com.example.auth"
  android:label="@string/auth_label"
  android:accountPreferences="@xml/auth_preferences" /&gt;
  </code></pre>
  
  <p>and in auth_preferences.xml I have:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
  &lt;PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  &lt;PreferenceCategory android:title="@string/auth_preferences_general_group" /&gt;
  &lt;PreferenceScreen android:key="account_settings"
      android:title="@string/auth_preferences_general_details_title" 
      android:summary="@string/auth_preferences_general_details_description"&gt;
      &lt;intent android:action="com.example.ACCOUNT_SETUP"
          android:targetPackage="com.example.core"
          android:targetClass="com.example.authentication.AuthenticatorAccountOptions" /&gt;
  &lt;/PreferenceScreen&gt;
  &lt;PreferenceCategory android:title="@string/auth_preferences_data_sync_group" &gt;
      &lt;CheckBoxPreference
            android:key="checkbox_pref"
            android:title="@string/auth_preferences_data_sync_syncwidget_title" 
            android:summary="@string/auth_preferences_data_sync_syncwidget_description"
            android:defaultValue="true"
            android:persistent="true" /&gt;  
  &lt;/PreferenceCategory&gt;   
  </code></pre>
  
  <p></p>
  
  <p>But I'm unable to access this checkbox preferences in the main code when I try and retrieve it :</p>
  
  <pre><code>SharedPreferences prefs = context.getSharedPreferences(PREFERENCES_NAME, Context.MODE_PRIVATE);
  boolean isChecked = prefs.getBoolean("checkbox_pref", true);
  </code></pre>
  
  <p>Anyone know where the account-authenticator based preferences can be accessed from?</p>