[android-developers] Re: Update Contacts

2011-05-04 Thread Stefan S
IT WORKED! THANK YOU! I could hit my self... I always use newUpdate(ContactsContract.Data.CONTENT_URI) for updating the values except for the StructuredName... On 4 Mai, 07:42, Stefan S shogu...@gmail.com wrote: I'll try. Thanks for the hint. Curiosley I can update the addresses, organisations

[android-developers] Re: Update Contacts

2011-05-03 Thread Stefan S
I'll try. Thanks for the hint. Curiosley I can update the addresses, organisations etc with the state above but the StructuredName values. This is really strange... On 30 Apr., 10:51, Ali Chousein ali.chous...@gmail.com wrote: Hhhmmm, maybe you should try

[android-developers] Re: Update Contacts

2011-05-02 Thread joseph bashkar
http://123maza.com/65/rings780/http://123maza.com/65/rings780/ http://123maza.com/65/rings780/http://123maza.com/65/rings780/ http://123maza.com/65/rings780/ http://123maza.com/65/rings780/ http://123maza.com/65/rings780/ On Apr 26, 10:42 pm, Stefan S shogu...@gmail.com

[android-developers] Re: Update Contacts

2011-04-30 Thread Ali Chousein
Hhhmmm, maybe you should try newUpdate(ContactsContract.Data.CONTENT_URI) instead of newUpdate(ContactsContract.Contacts.CONTENT_URI) I hope it helps :-) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

[android-developers] Re: Update Contacts

2011-04-29 Thread Stefan S
Hi Ali thanks for this blog. I already found it earlier :) My code now looks like String select = ContactsContract.Data.RAW_CONTACT_ID + =? AND + ContactsContract.Data.MIMETYPE + = ?; String[] args = new String[]

[android-developers] Re: Update Contacts

2011-04-28 Thread Ali Chousein
Can you post your code? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com

[android-developers] Re: Update Contacts

2011-04-28 Thread Stefan S
_context.getContentResolver().notifyChange( ContactsContract.Contacts.CONTENT_URI, null); ArrayListContentProviderOperation ops = new ArrayListContentProviderOperation(); int nIndex = ops.size();

[android-developers] Re: Update Contacts

2011-04-28 Thread Phuong Thai
Hi Ali, I've read your blog. It's really useful and interesting. Thanks for sharing. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group,

[android-developers] Re: Update Contacts

2011-04-28 Thread Ali Chousein
Hhhmmm, I'm not exactly sure what is wrong with your syntax. I have another blog which gives a full fledged example, in which newUpdate is used. I'm sure that, the example with newUpdate in that blog works. Maybe you may try to follow the syntax there. The address is:

[android-developers] Re: Update Contacts

2011-04-28 Thread Ali Chousein
Thank you Phuong, sharing information is what we do. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

[android-developers] Re: Update Contacts

2011-04-27 Thread Ali Chousein
Please check my blog at the address http://android-contact-id-vs-raw-contact-id.blogspot.com/ the section PROGRAMMATICALLY INSERT A CONTACT INTO A DESIRED GROUP. With the piece of code I give there, the contact is displayed in your contacts list. In the past I also had similar problems to yours

[android-developers] Re: Update Contacts

2011-04-27 Thread Stefan S
Hi Ali Thank for your reply. I've read your blog. Very interesting. You wrote that you also had problems with ContentValues. Should I try to use the ContentProviderOperation? On 27 Apr., 13:15, Ali Chousein ali.chous...@gmail.com wrote: Please check my blog at the

[android-developers] Re: Update Contacts

2011-04-27 Thread Ali Chousein
Hi Stefan, I would advice you to use ContentProviderOperation because this has the advantage of applying many operations in batch mode. It'll help you with speed improvements. But be careful how you should use the RAW_CONTACT_ID. If you have close look to the example, it should be obvious I

[android-developers] Re: Update Contacts

2011-04-27 Thread Stefan S
Ok. So i^'ll try with the ContentProviderOperation to update my contacts and thanks for the explanation contact_id, raw_contact_id. I'll give you some feedback if it's worked or not. Thanks Stefan On Apr 27, 2:20 pm, Ali Chousein ali.chous...@gmail.com wrote: Hi Stefan, I would advice you to

[android-developers] Re: Update Contacts

2011-04-27 Thread Stefan S
Which id do i have to take for updating the contacts? I've saved the RawContact_ID in my File but when I try to update with that ID the programm crashes. On 27 Apr., 14:28, Stefan S shogu...@gmail.com wrote: Ok. So i^'ll try with the ContentProviderOperation to update my contacts and thanks for