[android-developers] Re: Contacts FAQ?

2010-04-01 Thread piyu
Hi , In android2.1 contacts app no provision to edit other fields except name and photo details for custom sync accounts.It may intentional in android 2.1 contacts b'coz in ExternalSource.java inflate photo and name is adding by new DataKind(String mimeType, int titleRes, int iconRes, int

[android-developers] Re: Contacts FAQ?

2010-03-15 Thread Berto
Could be intentional. If it is intentional, it's quite the oversight. Although, IIRC, it was coded up, but the code will never be reached. Can't remember for sure though. On Mar 11, 12:36 pm, Jens dunkingbikk...@gmail.com wrote: Bug or intentional? On 3 mar, 20:31, HCH hayeshau...@gmail.com

[android-developers] Re: Contacts FAQ?

2010-03-11 Thread Jens
Bug or intentional? On 3 mar, 20:31, HCH hayeshau...@gmail.com 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 the contacts.xml.  It only reads

[android-developers] Re: Contacts FAQ?

2010-03-10 Thread Berto
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

[android-developers] Re: Contacts FAQ?

2010-03-03 Thread HCH
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 the contacts.xml. It only reads enough to support what you'd see in the Facebook type account. The source fix

[android-developers] Re: Contacts FAQ?

2010-02-26 Thread sazilla
Hi Berto, do you managed to render the contacts edit fields from a custom account using the native contacts app? or for contacts view only? thanks Carlo On 25 Gen, 17:25, Berto mstbe...@gmail.com wrote: Just an update for those of you still lost on adding custom accounts, sync adapters, etc.  

[android-developers] Re: Contacts FAQ?

2010-02-02 Thread HCH
Thanks so much for the link and of course many thanks to the original poster (Sam Steele). Anyone with android account and syncadapter questions should read his posts. My issue now is having the contacts app display and edit the standard fields (the stuff that lives in CommonDataKinds). I

[android-developers] Re: Contacts FAQ?

2010-01-25 Thread Berto
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/ http://www.c99.org/2010/01/23/writing-an-android-sync-provider-part-2/ Part 2 was the part I needed (how

[android-developers] Re: Contacts FAQ?

2010-01-24 Thread Berto
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:

[android-developers] Re: Contacts FAQ?

2010-01-12 Thread Jens
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=summary Note that this adapter isn't the complete story as any contacts you create with your custom accounts will be

[android-developers] Re: Contacts FAQ?

2010-01-12 Thread Jens
Developing in the SDK you can use the account type com.google - this will trick the Contacts app into displaying all the fields without trying to use the broken contact field format Brian hinted at earlier in this thread. This will of course probably not work in an actual device where the

[android-developers] Re: Contacts FAQ?

2010-01-09 Thread joebowbeer
On Dec 10 2009, 7:03 am, ydario mc6...@mclink.it wrote: I tried adding contacts code 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 a new

[android-developers] Re: Contacts FAQ?

2009-12-15 Thread sazilla
Hi everyone, I encountered an issue while configuring my own account for android contacts sync. When the user choses to add a new contact to the custom account, only the name fields and the photo are showed. This behaviour can be found in the ExternalSource.java android source file. My question

[android-developers] Re: Contacts FAQ?

2009-12-12 Thread ydario
Hi Brian, unfortunately I don't have a 2.0 phone, and the emulator does not have working authenticators. -- ...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?]

[android-developers] Re: Contacts FAQ?

2009-12-11 Thread ydario
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

Re: [android-developers] Re: Contacts FAQ?

2009-12-11 Thread Brian Cavagnolo
On Fri, Dec 11, 2009 at 2:57 AM, ydario mc6...@mclink.it 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

[android-developers] Re: Contacts FAQ?

2009-12-10 Thread ydario
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:

Re: [android-developers] Re: Contacts FAQ?

2009-12-10 Thread Brian Cavagnolo
On Thu, Dec 10, 2009 at 7:03 AM, ydario mc6...@mclink.it 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

[android-developers] Re: Contacts FAQ?

2009-12-09 Thread Brian Cavagnolo
ydario: please keep the public discourse public: On Wed, Dec 9, 2009 at 2:52 PM, ydario mc6...@mclink.it wrote: Hello, 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'm trying

[android-developers] Re: Contacts FAQ?

2009-11-22 Thread GDroid
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 jark...@gmail.com wrote: GDroid - here's a recipe for supporting two SDK versions in one app:

[android-developers] Re: Contacts FAQ?

2009-11-19 Thread jarkman
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 baron...@gmail.com wrote: I would like to add one more question to this issue: 15) What is the best way to write the