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
Developer
Posts: 121
Registered: ‎02-08-2013
My Device: 9900
My Carrier: verizon

Turning flash off has stopped working

Hi,

 

I have been notified that my camera application doesn't turn the flash off anymore when taking a picture since 10.2.

 

I use the following code after calling camera_open

 

camera_flashmode_t mFlashMode = CAMERA_FLASH_OFF;
if (camera_config_flash(mCameraHandle, mFlashMode) == EOK) {
qDebug() << "turned flash off ok";
}
else
qDebug() << "couldnt turn flash off";

 

But the flash is still active when dark (as if in auto mode). I have tried with api levels 10.0, 10.1 and 10.2.

 

EOK is returned when calling camera_config_flash.

 

Can anybody provide a reason?

Developer
Posts: 237
Registered: ‎05-21-2012
My Device: BlackBerry RED Z10
My Carrier: WiFi

Re: Turning flash off has stopped working

Highlighted
Developer
Posts: 121
Registered: ‎02-08-2013
My Device: 9900
My Carrier: verizon

Re: Turning flash off has stopped working

Thanks for replying but that sample seems to be to enable/disable videolight. I need to disable the flash when taking a picture but no matter where I put the above code to disable the flash it will still flash when too dark so it's obviously not being disabled even though EOK is returned. Please can somebody help as I wasted hours now on this simple problem.
Developer
Posts: 121
Registered: ‎02-08-2013
My Device: 9900
My Carrier: verizon

Re: Turning flash off has stopped working

Can somebody from BlackBerry (Sean?) please tell me if I am de-activating the flash correctly with the code I have provided?

 

Please..

Developer
Posts: 121
Registered: ‎02-08-2013
My Device: 9900
My Carrier: verizon

Re: Turning flash off has stopped working

Bump
Developer
Posts: 828
Registered: ‎10-16-2012
My Device: Red Z10
My Carrier: Rogers

Re: Turning flash off has stopped working

[ Edited ]

I've also noticed with 10.3 camera_config_flash() doesn't return an error when trying to set a flash mode but ultimately it does nothing the flash is stuck in auto mode.

 

I've tested this using all 3 camera_api versions.

 

for what it's worth i've created a jira ticket... maybe someyear it will get looked into

https://www.blackberry.com/jira/browse/BBTEN-3140