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
Super Contributor
Posts: 440
Registered: ‎01-13-2011
My Device: Playbook
My Carrier: NA

Camera Settings

Hi,

 

I've had a look at a few sample camera apps and I can't find an example of how to change the camera settings, I've tried this, but no luck, could someone point me in the right direction?

 

camera->open(CameraUnit::Rear);
            camera->startViewfinder();
            CameraSettings * cS = new CameraSettings;
            cS->setFlashMode(1);
            camera->applySettings();

 

--------------------------------------------------------------------------------------------------
BlackBerry Apps: Instruments | ARTPAD | Piano | Drums | Xylophone
New Contributor
Posts: 8
Registered: ‎12-10-2011
My Device: Playbook
My Carrier: 2042997911

Re: Camera Settings

[ Edited ]

Hi,

 

I got it to work by doing the following.

 

camera->open(direction);
camera->startViewfinder();
settings = new CameraSettings();
camera->getSettings(settings);

settings->setZoomLevel(30);
camera->applySettings(settings);

 

Hope that helps!

Retired
Posts: 138
Registered: ‎05-11-2012
My Device: Developer
My Carrier: Developer

Re: Camera Settings

The following post has some useful information on camera samples

 

http://supportforums.blackberry.com/t5/Cascades-Development/Camera-Sample-Code/m-p/1744327/highlight...

 

Hope this helps you progress; please let us know how you get on.

 

Graham

Highlighted
Super Contributor
Posts: 440
Registered: ‎01-13-2011
My Device: Playbook
My Carrier: NA

Re: Camera Settings

[ Edited ]

That post and examples linked in the post have nothing to do with camera flash. I've got the settings working now, just I cant get the flash to stay on.

--------------------------------------------------------------------------------------------------
BlackBerry Apps: Instruments | ARTPAD | Piano | Drums | Xylophone