Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Contributor
Posts: 25
Registered: ‎04-05-2012
My Device: Storm 9630
My Carrier: AT&T

Reading Contacts from phonebook.

Hi,

 

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.

 

Thanks.

Developer
Posts: 434
Registered: ‎07-23-2012
My Device: Blackberry 10
My Carrier: Orange

Re: Reading Contacts from phonebook.

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. 

 

http://stackoverflow.com/questions/6224157/blackberry-contact-listener

 

Thanks

Thanks
-------------------------------------------------------------------------------------
Press the Accept as solution Button when u got the Solution
Press Kudo to say thank to developer.
-------------------------------------------------------------------------------------.
Highlighted
Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Reading Contacts from phonebook.

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.