On Thu, Dec 10, 2009 at 7:03 AM, ydario <[email protected]> wrote: > Hi, > > >> You need two meta-data entries: > > ah, I wonder why I didn't do this... maybe being around midnight does > not help ;-) > >> See the (limited) sync adapter documentation for details on preparing >> res/xml/syncadapter_description.xml. > > very limited. > >> Of course the original question still stands: The fields that you >> specify in res/xml/contacts.xml don't come up in the contacts app. It >> appears that the code that processes the actual fields is not in >> place. > > here I think I still have to reach this level. When I open a contact, > here the Contacts Activity stops because it is unable to find an > authenticator. > > I tried adding contacts code to this project > > http://code.google.com/p/androidaccounts/ > > but it still fails because contacts.model.Sources.findAuthenticator > does not work.
When you navigate to Contacts->[menu]->Accounts->AddAccount or Settings->Accounts & sync->Add Account does your custom account type appear? If not, this is probably your next milestone. I achieved this by reading the code in packages/apps/Email/, which is a far cry from a gentle introduction to this stuff. Also, the actual Account Settings activity in packages/providers/GoogleSubscribedFeedsProvider/ plays a pivotal role in all of this. (You'd think that activity would be in a more prominent place like in the actual Settings app.) > I'm using the 2.0.1 emulator, not a real phone, I don't know if this > makes a difference (but account_type is empty on the database). I'm using the head of the public repo, not the SDK. I'm not sure if there's any differences. Ciao, Brian -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

