I've got a question related to #8 "How do I add an Account type, a'la
Facebook, so that I can sync contact data in from MySpace/Livejournal/
whatever."  This seems like the best thread so far to ask it:

My goal is to have the stock android Contacts app create a full
fledged contact with Name, Phone, Email, etc., for my custom account
type.  After some code reading and experimentation, I understand how
programmers are meant to register a new account type, provide a sync
adapter for that account type, and provide an xml CONTACTS_STRUCTURE
for that account type.  I have all of this working, so I am able to
create a new account and add contacts all from the Contacts app.
However, the only editable fields that appear when I create a contact
are "Given name" and "Family name."

A close read of packages/apps/Contacts/src/com/android/contacts/model/
ExternalSource.java reveals that the EditField and EditTypes info in
the
CONTACTS_STRUCTURE xml file are not being parsed.  So the fields I
specify in my CONTACTS_STRUCTURE do not appear in the UI.  Will this
functionality be implemented and released in the near term?  ...or am
I missing something?

Also, are there any other sample CONTACTS_STRUCTURE files besides the
comments in ExternalSource.java?

Thanks,
Brian

On Nov 22, 3:42 am, GDroid <[email protected]> wrote:
> Thanks jarkman. I've continued the discussion in the thread you have
> mentioned.
>
> http://groups.google.com/group/android-developers/msg/f3b24f3a0748a622
>
> On Nov 19, 12:27 pm, jarkman <[email protected]> wrote:
>
> > GDroid - here's a recipe for supporting two SDK versions in one app:
>
> >http://groups.google.com/group/android-developers/msg/f3b24f3a0748a622
>
> > Richard
>
> > On Nov 18, 9:43 am, GDroid <[email protected]> wrote:
>
> > > I would like to add one more question to this issue:
>
> > > 15) What is the best way to write the code so in case the API Level is
> > > below 5, some of the contacts actions can still be done correctly.
>
> > > As far as I've checked when publishing an application on the market
> > > there is no way to publish two "apk"s, for different API levels. As
> > > noted in other threads, the only Phone I know of currently running
> > > Android 2.0 is the Motorola Droid. My guess is that every developer
> > > would like to be able to support other/older phones as well.
>
> > > On Nov 17, 8:38 pm, Rachel Blackman <[email protected]> wrote:
>
> > > > On Nov 17, 2009, at 10:21 AM, Jeff Sharkey wrote:
>
> > > > > [ ... snip ... ]
>
> > > > Thank you!  I'll try to write up an updated FAQ this evening, with some 
> > > > short examples written for various queries, and post a draft. :)
>
>

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