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
oddboy
Posts: 136
Registered: ‎05-24-2011
My Device: Z30 running 10.2 and Playbook 4GLTE running OS2.1

camera only auto focuses when displayDirection is not West

[ Edited ]

hey gang,

 

i have a weird problem.  I have an app that makes use of the Camera.

 

however, the camera will only auto focus if the display direction is not West.  In this case, West is when the device is in Landscape mode with the top of the phone pointing to the Left.  It works fine if the phone is in Landscape, but the top of the phone is pointing to the Right - aka East.

 

WTH is up with that?  and more importantly, how can i handle this?

 

EDIT: i should add.  When the device is oriented to the West, the auto focus basically looks like it's zooming in until everything is out of focus, then stops (with the image appearing fuzzy and out of focus).  Turn the device to the East, the view finder adjusts and focuses normally.  it's odd.

 

thanks!

 

J

bron: a cron-like scheduler for BlackBerry 10
http://apps.oddelement.com
Retired
PBernhardt
Posts: 749
Registered: ‎12-16-2008
My Device: BlackBerry Z30

Re: camera only auto focuses when displayDirection is not West

Which device is it? And do you see that in the built in camera app, as well? What are you doing to handle the focus in the app, and are you using the C or Cascades API?

Paul Bernhardt
Application Development Consultant
BlackBerry
@PBernhardt

Did this answer your question? Please accept this post as the solution.
Found a bug? Report it to the Developer Issue Tracker
Developer
oddboy
Posts: 136
Registered: ‎05-24-2011
My Device: Z30 running 10.2 and Playbook 4GLTE running OS2.1

Re: camera only auto focuses when displayDirection is not West

sorry, my post was a little light on detail.

 

i'm using a Z10.  

 

I have a few ActionItems on the overflow menu.  you use them to set the focus mode.  when you select one of those options the app will do:

 

camera1.getSettings(cameraSettings);
cameraSettings.focusMode = currentFocusMode;
camera1.applySettings(cameraSettings);

 is there anythign else to do?

 

seems like it works fine with the native camera application.  I'm sure it's something in my code, but can't for the life of me figure it out.

 

thanks!

 

J

bron: a cron-like scheduler for BlackBerry 10
http://apps.oddelement.com