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

Native Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Highlighted
Regular Contributor
Posts: 56
Registered: ‎06-30-2010
My Device: 9700
My Carrier: T-Mobile UK

ContactService signal on Delete - access to deleted item

Hi there,

 

Very new to BB10 development so excuse my general ignorance of platform at the moment ..

 

I'm trying a test to see if I can convert or recreate an app I wrote on the BB5/6/7 platform in Java that utilised the PIM Listener(s) to capture deleted items etc. ... I'm trying to use the ContactService signals "contactsDeleted" which I've managed to capture and debug and it returns the id(s) of the deleted contacts ok but, whereas in BB5/6/7 Listener you could access the deleted contact itself at this point, it looks like there's no way to access it in BB10 as it appears to have been deleted by the the time ths signal is called?

 

Is there any way to access the item (contact in this case but also same in calendar etc) that's been removed from the contact list but before it's actually destroyed so to speak? There's not a lot of point of a delete signal if there's no way of knowing what's been deleted other than it's id?

 

I have tried calling the ContactService contactDetails passing the id as parameter but it doesn't return anything from what I can see.

 

Any help or advice much appreciated!

 

Derek

Regular Contributor
Posts: 56
Registered: ‎06-30-2010
My Device: 9700
My Carrier: T-Mobile UK

Re: ContactService signal on Delete - access to deleted item

Anyone any ideas on this?

 

Thanks,

 

Derek

Developer
Posts: 41
Registered: ‎07-07-2009
My Device: Not Specified

Re: ContactService signal on Delete - access to deleted item

I don't think it is possible to retrieve contact data if it is being deleted in BB10.

 

However, I just faced the deleteContact function in the ContactService runs very slow. Do you have the same problem?