• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Contact Create Event Listener

 
Ranch Hand
Posts: 51
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have developed a small android application : Contact Updater Utility

The app suggests updates to contacts that do not have country code appended in the beginning.

I want to add a functionality to this app which can alert the user to add country code when the contact is created or updated.
I had read about services that can run in background and check periodically for changed contacts; but that is not something i want to leverage.

So to implement this;"Can i have an event listener/receiver in android which gets triggered when a contact is created or updated ?"
If i can receive this broadcast, i can go ahead to add my functionality.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This may help: http://stackoverflow.com/questions/1401280/how-to-listen-for-changes-in-contact-database
 
Tarun Trehan
Ranch Hand
Posts: 51
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Ulf.

Looks like android does not have an API i am looking for.
However, i found this thread useful and may try to implement my functionality by leveraging it.

Android : How to Know Contact Change
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yep, that's the same approach the post I linked to talks about.
 
reply
    Bookmark Topic Watch Topic
  • New Topic