Any suggestions please?

On Apr 13, 10:50 am, "[email protected]"
<[email protected]> wrote:
> Hi. i am trying tolistenout for forchangesmadeinContactMethodtableusing  the 
> code below:
>
> mPeopleObserver = new ContactContentObserver(mHandler);
>
> this.getContentResolver().registerContentObserver(Contacts.ContactMethods.C­ONTENT_URI,
>                                 true, mPeopleObserver);
>
> It doesnt seem to work whenever i change a contacts email address or
> instant messanger details.
>
> i have a conentObserver method below that should catch and notify me
> of anychangesmadeto thetablebut it doesnt.
>
>         /**
>          * ContentObserver to get the call backs forchangesin the onChange
> method
>          */
>         private class ContactContentObserver extends ContentObserver {
>
>                 public ContactContentObserver(Handler handler) {
>                         super(handler);
>                 }
>
>                 public void onChange(boolean selfChange) {
>                         // Excute Aggregation process
>                         try {
>                                 Log.d("AggregationService", "onChange fired 
> by content observer");
>                                 AggregateContacts();
>                         } catch (Exception e) {
>                                 e.printStackTrace();
>                         }
>                 }
>         }
>
> Cheers in advance.

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to