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 on April 1st. 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


Reply
Developer
Posts: 64
Registered: ‎02-21-2012
My Device: Blackberry Playbook
My Carrier: None
Accepted Solution

led_request_color – permission denied

How do I set permission to access led_request_color?

New Developer
Posts: 8
Registered: ‎03-04-2009
My Device: Not Specified

Re: led_request_color – permission denied

[ Edited ]

1. Open the bar-descriptor.xml source,

 

2. go to:

 

<!-- Request permission to execute native code. ... -->

 

3. add:

 

<action>access_led_control</action>

 

Worked for me after this modification.

 

Regards,

Tom

Developer
Posts: 64
Registered: ‎02-21-2012
My Device: Blackberry Playbook
My Carrier: None

Re: led_request_color – permission denied

Thanks Tom that worked perfectly.  Where and how did you find that?

Regards,

  Roger

New Developer
Posts: 8
Registered: ‎03-04-2009
My Device: Not Specified

Re: led_request_color – permission denied

Hi Roger,

 

just tried it. I think it should be in the Momentics permission page of the bar-descriptor file as a check box, but it is not yet in. So I just wrote it into the source page and it worked.

 

Regards,

Tom

 

 

Developer
Posts: 64
Registered: ‎02-21-2012
My Device: Blackberry Playbook
My Carrier: None

Re: led_request_color – permission denied

Hi Tom,

 

I saw the 'access_led_control' label in led.h and I read the errno indicating lack of permission but it never occured to me to just try it in bar-descriptor.xml.

 

You saved me lots of time.

 

Thanks again,

  Roger

Highlighted
Trusted Contributor
Posts: 140
Registered: ‎11-23-2010
My Device: Torch 9800
My Carrier: Rogers

Re: led_request_color – permission denied

Thank you for the answer Tom, I was actually having the same problem.

 

Adding this line in Beta 3 wasn't working so I never tought about trying again.