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

BlackBerry Web Services


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
New Contributor
Posts: 3
Registered: ‎09-13-2012
My Device: all
My Carrier: o2

Problem with net.rim.device.api.lbs.Locator.geocode

After calling "net.rim.device.api.lbs.Locator.geocode(String freeformString, Coordinates startCoords)" we get a error message "net.rim.device.api.system.ControlledAccessException" while trying to geocode an address.

 

Do we have to set special Enterprise rules for that call? If yes, what and where?

 

Thanks

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

Re: Problem with net.rim.device.api.lbs.Locator.geocode

This is likely called by the app not having permissions set appropriately. If your application requires special permissions then it would be recommended to request those permissions programmatically when the app is first run.

 

It is possible that the BES has rules in place to prevent LBS APIs from being used, but I would recommend checking the app permissions on the device first.

Garett
@garettBeuk
--
Goodbye everybody!
New Contributor
Posts: 3
Registered: ‎09-13-2012
My Device: all
My Carrier: o2

Re: Problem with net.rim.device.api.lbs.Locator.geocode

Thanks for the reply. However we don't know what permission for this API call is necessary and what IT policy must be set by the BES admin in order to grant those permissions. There is no documentation regarding this issue...

 

Stefan

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

Re: Problem with net.rim.device.api.lbs.Locator.geocode

Hi Stefan,

 

The app is trying to access the location of the device, so you need to have the "Location Data" permission of the application enabled. 

 

There are many docs about permissions, both device side and server side.

Garett
@garettBeuk
--
Goodbye everybody!
Highlighted
New Contributor
Posts: 3
Registered: ‎09-13-2012
My Device: all
My Carrier: o2

Re: Problem with net.rim.device.api.lbs.Locator.geocode

Hi Garett, thanks for your fast reply.

The call doesn't access the location of the device. Locator is a geocoding service that allows you to obtain location information for an address.

Any help to us?

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

Re: Problem with net.rim.device.api.lbs.Locator.geocode

Hi Stefan,

 

Request app permissions, there is an applicationpermissionsdemo sample included with all Java Development tools that shows how this can be done. Alternatively try enabling all permissions and see if the issue goes away.

Garett
@garettBeuk
--
Goodbye everybody!