The problem lies within the broken parts of the Contacts app, so a
proper implementation of custom contacts sync is effectively dead for
all devices running 2.0.1 (and probably 2.1).

On 21 Jan, 00:05, sazilla <[email protected]> wrote:
> did anyone fix this problem? any suggestion?
>
> does it mean that there's no application providing contacts sync?
>
> On Dec 29 2009, 3:14 pm, sazilla <[email protected]> wrote:
>
> > Hi Vadim,
>
> > Actually for what I've understood thecustommime type can be used to
> > specify how to render thecustomfields when you view the contact not
> > while you edit it. I've found a bug in the Contacts application
> > (around line 
> > 178):http://android.git.kernel.org/?p=platform/packages/apps/Contacts.git;...
>
> > The ExternalSource component should be able to read the xml file you
> > mentioned above and render it in the contacts editing screen, but...
> > it doesn't.
>
> > The Facebook application, for example, defines acustomfiled (the FB
> > profile) in the contacts.xml file, and it i rendered correctly when
> > you view a FB contact, but the FBaccountin Android is a read onlyaccount, 
> > it means that in any case you cannot create/edit contacts
> > from android.
>
> > Up to now I found only a workaroun, filtering the intent launched
> > everytime a contact must be created/edited and show acustomcontacts
> > edit screen, for our contactsaccount, or forward the request to the
> > default contacts app if the contact belongs to a differentaccount.
>
> > Let me know if you've found any other workaround.
>
> > Thank you
>
> > Carlo
>
> > On Dec 23, 3:16 pm, Vadim Vohmjanin <[email protected]> wrote:
>
> > > I have found something...
>
> > > For thatcustomData row to appear in the Contacts app, you'll need to
> > > associate yourcustomMIME-type with XML that describes how to render
> > > the UI.  The only current way of doing this is to define a sync
> > > adapter <service> and add <meta-data> definition inside, something
> > > like this:
>
> > > <meta-data android:name="android.provider.CONTACTS_STRUCTURE"
> > >  android:resource="@xml/contacts" />
>
> > > So you have 2 metas there, one is for sync adapter.
>
> > > Then define the contacts XML inside your app ./res/xml/contacts.xml:
>
> > > --snip--
> > >  <ContactsSource xmlns:android="http://schemas.android.com/apk/res/
> > > android";>
> > >      <ContactsDataKind
> > >          android:mimeType="vnd.com.example.voip.cursor.item/phone_v2"
> > >          android:icon="@drawable/icon"
> > >          android:summaryColumn="data2"
> > >          android:detailColumn="data3" />
> > >  </ContactsSource>
> > > --snip--
>
> > > I have tried this, but i didn't get it working. It sure effects in
> > > some way. But i don't get desirable result.
>
> > > Any help pls?
>
> > > On Dec 18, 4:32 pm, Vadim Vohmjanin <[email protected]> wrote:
>
> > > > I faced the same problem.
>
> > > > I'm doing the research now. If you have found how to do it, please
> > > > provide this info. I'd be very greatfull.
>
> > > > I also wanted to know, what exactly way do you createcustomaccount?
> > > > As i understoodaccountcreation currently *requires* a developer to
> > > > implement a
> > > > service that extends AbstractThreadedSyncAdapter and publishes the
> > > > correct intent in
> > > > its manifest.
> > > > When this is not the case, the "Accounts & Sync" settings does not
> > > > handle the case
> > > > where this is not defined and causes the NPE in the core process that
> > > > causes the
> > > > reboot.
> > > > It is recommended that this defect be patch and/or the documentation
> > > > updated to include the
> > > > proper procedures and requirements for creation of anaccountin
> > > > Android.
>
> > > > Alsoaccountcreation requires of the authenticator to be implemented
> > > > for theaccounttype.
> > > > In order to be an authenticator developer must extend
> > > > AbstractAccountAuthenticator class, provider implementations for the
> > > > abstract methods and write a service that returns implemented
> > > > AccountAuthenticator.
>
> > > > Or there is more simple way to create acustomaccountfor Contacts?
>
> > > > On Dec 15, 4:52 pm, sazilla <[email protected]> wrote:
>
> > > > > Hi everyone,
>
> > > > > I encountered an issue while configuring my ownaccountfor android
> > > > > contacts sync. When the user choses to add a new contact to thecustom
> > > > >account, only the name fields and the photo are showed. This behaviour
> > > > > can be found in the ExternalSource.java android source file.
>
> > > > > My question is, if I don't want to addcustomcontacts fields for my
> > > > >account, how can I configure theaccountto show all the standard
> > > > > fields in the contacts application in the same way the googleaccount
> > > > > does?
>
> > > > > Thank you
>
> > > > > Carlo

-- 
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

Reply via email to