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

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

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