07-24-2012 02:07 AM
Is there any way that my application get to know if there is any change in phonebook contacts while my application is not running.
Or is there any way like a phonebook wll triggered my application for any change in device phonebook conts list.
07-24-2012 07:38 AM
1. I feel phonebook can not trigger your application. In BB we don’t have broadcast listener like we have in android. The approach I can suggest if use splash kind of screen in your application and sync your contact with the application at that time.
2. When you application is running you can use PIMListListener2 listener to get the update from the phonebook.
i think u knew this alrady.
07-24-2012 08:08 AM
I might be wrong, but I think that a PIMListener is in fact independent of an Application. So you can, at device start-up, register a PIMListener, and this will get notified of any changes. If you want to process these in any way, then you could start up an instance of your Application. Or you could just store the change notification until your app is started to give your user a list of the changes.
Alternatively, you could have your Application running all the time, just in the background.