The getHorizontalViewAngle() and getVerticalViewAngle() can at best
return fixed hardware-dependent values as set by the phone
manufacturer for their own built-in lens. As soon as the user applies
an add-on lens (e.g. one of those magnetic detachable fish-eye lenses
as recommended for my app) those function values will be wrong. In
general there exists no reliable way to calculate the field of view
from a camera view without applying a calibration step on the user
side.

Regards


The vOICe for Android
http://www.seeingwithsound.com/android.htm


On Jun 14, 1:34 am, Stephen Lebed <[email protected]> wrote:
> I'm bumping this thread because I could really use an answer.  I'm
> developing an app on the G1 phone and I can't find any info on the
> focal length or field of view for the camera.  If anyone has this
> info, or knows where I can find it I'd greatly appreciate it.  The
> camera.getHorizontalViewAngle () command seems like it would return a
> value from the camera that I could use, but I'd like my app to run on
> pre 2.2 hardware.
>
> Thanks,
>
> Stephen
>
> On May 21, 4:46 am, Stephen Lebed <[email protected]> wrote:
>
> > I'm curious how the camera view angle determined using
> > getHorizontalViewAngle?
>
> > Is it predefined within the API, or is it provided by the hardware?
>
> > Thanks,
>
> > Stephen
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]
> > For more options, visit this group 
> > athttp://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to