HCH pretty much hit it on the head. It appears as though there is a bug (or the last time I checked) that prevents Android from seeing your edit fields (they just simply skip over them when parsing your contacts.xml file).
The only part I've gotten to work, which was all I really needed, is the viewing of your custom MIMETYPE. On Mar 3, 1:31 pm, HCH <[email protected]> wrote: > From my reading of the sources (2.1) a custom account contact is not > editable on the phone outside of the name fields. > > The contact editor does not read the relevant information out of > thecontacts.xml. It only reads enough to support what you'd see in the > Facebook type account. > > The source fix would likely be trivial: just use the fallback source > mapping as the baseline. > > On Feb 26, 12:49 am, sazilla <[email protected]> wrote: > > > Hi Berto, > > > do you managed to render thecontactsedit fields from a custom > > account using the nativecontactsapp? or forcontactsview only? > > > thanks > > Carlo > > > On 25 Gen, 17:25, Berto <[email protected]> wrote: > > > > Just an update for those of you still lost on adding custom accounts, > > > sync adapters, etc. I found a great article here: > > > >http://www.c99.org/2010/01/23/writing-an-android-sync-provider-part-1... > > > > Part 2 was the part I needed (how to render the information you synced > > > to a contact). > > > > HTH, > > > > Berto > > > > On Jan 22, 4:57 pm, Berto <[email protected]> wrote: > > > > > So, it turns out that anything you put into your own ExternalSource > > > > will never get parsed and therefore (theoretically) never show up. Or > > > > am I doing something wrong? The code looks like it will parse only > > > > the information in ContactsDataKind and not the EditField node from > > > > the following: > > > > > <ContactsSource xmlns:android="http://schemas.android.com/apk/res/ > > > > android"> > > > > <ContactsDataKind > > > > android:mimeType="com.example.mimetype" > > > > android:icon="@drawable/icon" > > > > android:summaryColumn="data2" > > > > android:detailColumn="data3"> > > > > <EditField column="data1" title="@string/sample_string" /> > > > > </ContactsDataKind> > > > > </ContactsSource> > > > > > Essentially, I have adding an account and the sync adapter working. > > > > But when I try to create a new contact through thecontactsapp, I can > > > > never see any of the fields I added in the XML structure defined by > > > > "<meta-data android:name="android.provider.CONTACTS_STRUCTURE" > > > > android:resource="@xml/contacts" />". Has anyone figured out an > > > > answer to this problem yet? I've seen a few posts, but nothing with a > > > > solid answer. > > > > > On Jan 12, 4:45 am, Jens <[email protected]> wrote: > > > > > > You could check the Email app - its the current location of the > > > > > Exchange ActiveSync SyncAdapter implementation. > > > > > >http://android.git.kernel.org/?p=platform/packages/apps/Email.git;a=s... > > > > > > Note that this adapter isn't the complete story as anycontactsyou > > > > > create with your custom accounts will be next to useless without > > > > > looking into the wonky ExternalSource.java integration required for > > > > > custom adapters (unless your happy withcontactsthat only contains a > > > > > name and photo). > > > > > >http://android.git.kernel.org/?p=platform/packages/apps/Contacts.git;... > > > > > > Sources.java contains the "super-special-let's-not-use-our-own-API:s- > > > > > because-that's-hard-work-and-might-require-us-to-actually-document- > > > > > anything-or-heaven-forbid-test-it" if-statement that determines the > > > > > layout of yourcontactsin theContactsapp - and gives super-special > > > > > treatment to accounts with the type "com.google" or > > > > > "com.android.exchange". > > > > > > ExternalSource.java contains the sparse and incomplete API > > > > > documentation that you're going to have to use. > > > > > > On 9 Jan, 22:16, joebowbeer <[email protected]> wrote: > > > > > > > On Dec 10 2009, 7:03 am, ydario <[email protected]> wrote: > > > > > > > > I tried addingcontactscode to this project > > > > > > > >http://code.google.com/p/androidaccounts/ > > > > > > > The referenced project no longer exists. Are there any similar > > > > > > projects to check out? If not, could someone who has a handle on > > > > > > this > > > > > > start anewproject? -- 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

