title: How to properly setup the syncAdapter?
body: <p>I'm a newb with the syncAdapter . i've watched the <a href="https://www.youtube.com/watch?v=xHXn3Kg2IQE" rel="nofollow noreferrer"><strong>google IO video</strong></a> (lecture presentation <a href="https://dl.google.com/googleio/2010/android-developing-RESTful-android-apps.pdf" rel="nofollow noreferrer"><strong>here</strong></a>) , and i've read 2 tutorials (<a href="http://naked-code.blogspot.co.il/2011/05/revenge-of-syncadapter-synchronizing.html" rel="nofollow noreferrer"><strong>here</strong></a> and <a href="http://www.c99.org/2010/01/23/writing-an-android-sync-provider-part-1/" rel="nofollow noreferrer"><strong>here</strong></a>) about it . </p>
  
  <p>i've also tried out the code of the tutorials and it's frustrating that i can't figure out how to implement the syncAdapter correctly . </p>
  
  <p>what i believe is that some of the preferences (either in the manifest or on the xml files) are just wrong , but i can't find out why .</p>
  
  <p>i've succeeded to allow adding the syncing account and also show it with its icon . </p>
  
  <p>however , i'm facing some weird problems that i can't figure out why they occur:</p>
  
  <ol>
  <li><p>allow the account to synchronize . the end user cannot press on the syncing button . it also doesn't seem to auto-sync even though i've tried to add such a thing upon adding the account . </p></li>
  <li><p>after adding the account , the end user can see a weird description of the account :  "res/xml/authenticator.xml" . not sure where its being set.</p></li>
  <li><p>when clicking the account (after it was added) , i see an empty list (which is proba. how do i add more items there ? in the future , i need to also sync with facebook and gmail , but i can't event succeed with adding my own contentProvider to this list. </p></li>
  </ol>
  
  <p>i don't need to do real authorization so i just use the next code instead inside the activity that extends from AccountAuthenticatorActivity  :</p>
  
  <pre><code>accountManager.addAccountExplicitly(account, PASSWORD, null);
  final Intent intent = new Intent();
  intent.putExtra(AccountManager.KEY_ACCOUNT_NAME, USERNAME);
  intent.putExtra(AccountManager.KEY_ACCOUNT_TYPE, accountType);
  setAccountAuthenticatorResult(intent.getExtras());
  setResult(RESULT_OK, intent);
  finish();
  </code></pre>
  
  <p>i've also tried to set auto-syncing and enable syncing by using what's described <a href="https://stackoverflow.com/a/8938955/878126">here</a>.</p>