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

New Contributor
Posts: 4
Registered: ‎10-27-2011
My Device: Many
My Carrier: Many

Error in sample showing BlockingSenderDestination object

Hi there,


There appears to be a coding error in the sample code shown for the Communcations API. The page in question is




Under point 4, it shows the following code:

        URI uri = new URI("http://www.blackberry.com");


Should it not be:


URI uri = URI.create("http://www.blackberry.com");



Regards. Tom

All Replies
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: Error in sample showing BlockingSenderDestination object

Hi Tom,


Nice catch! This is definitely a mistake in the documentation.


For issues like this, with the docs, you can submit the issue to the writers directly using the following steps:

At the bottom of every page there is a small heading, "Did this help you?" with a Yes or No button below. If you click the No button then you will get a form where you can submit feedback regarding the information provided on the page.


Feel free to submit this information and the recipients will make sure that the documentation gets updated with correct code.




Goodbye everybody!