On Fri, Dec 11, 2009 at 2:57 AM, ydario <[email protected]> wrote:
> Hi,
>
>
>> 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
>
> thanks for pointer.
>
> But here gets my question: if I add an authenticator, the phone will
> end having at least two of them, mine and google one.
> Will I be able to access also google contacts?
> after looking at rawcontacts fields, it seems to me that every account
> is tied to one authenticator, so I will not have access to standard
> contacts.
>
> What is your experience regard this?

Excellent question.  I've been learning the answer the hard way:)
Here's how it works: Suppose I have multiple accounts on my android
device and...

-- ...I try to create a new contact in the contacts app.  What
happens?  The contacts app will ask me under which account the contact
should be created.

-- ...I try to view my contacts in the contacts app.  What happens?
Only the contacts who's accounts are configured to appear under
Contacts->[menu]->Display options will appear.

-- ...I try to add a contact programatically using the
ContactsContract API.  What happens?  This I'm not completely clear
on.  If you use the RAW_CONTACTS uris, I suppose you [must?] specify
the account type and name when you add the contact.  If you use the
CONTACTS uris, a raw contact gets created, but I don't know if the
account fields are populated.  You could try it and dump the db table.
 If you do this experiment, let me know the result!

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

Reply via email to