I've been developing an application that uses the camera. It's been
tested on several phones, but I seem to be having trouble with the HTC
phones. I can't get the zoom to work on the HTC sensation.
I'm initializing the zoom by using a function similar to this one:

 private void initZoom()
 {
      Camera.Parameters m_CameraParams = m_objCamera.getParameters();
      LogCat.d(Globals.LOG_CAT_TAG,"initializing Zoom");
      m_bSmoothZoomSupported =
m_CameraParams.isSmoothZoomSupported();
      m_objCamera.setZoomChangeListener(new ZoomListener());

      m_nMaxZoom = m_CameraParams.getMaxZoom();
      LogCat.d(Globals.LOG_CAT_TAG , "Max Zoom= " +m_nMaxZoom);

      m_sbZoom.setMax(m_nMaxZoom);
      m_sbZoom.setProgress(0);
   }

The issue is that getMaxZoom() always returns 0.

For the HTC Incredible 2, the autofocus callback is never called.
I'm using something similar to what is listed below:

m_objFocusCallback = new AutoFocusCallback();
m_objCamera.autoFocus(m_objFocusCallback);

where AutoFocusCallback is just an empty class that implements
android.hardware.Camera.AutoFocusCallback.
Well really I stripped the class of all other functionality to make
sure I wasn't making some sort of error. The after calling
m_objCamera.autoFocus(m_objFocusCallback), the callback is never
executed.

My code works fine on at least 4 other devices. (Samsung Galaxy s2,
Droid X, Droid2, LG Ally).
Has anyone else experiences similar problems working with these HTC
devices. I have to make changes to my application so it will work on
many different devices, because it was originally developed for the
Droid X.

Here is a link to my test application, if it will help.
http://www.mediafire.com/?6bdh5y88bs6517b

-- 
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