On Thursday, March 24, 2016 at 3:49:52 PM UTC-7, gjs wrote:
>
> Hi,
>
> Re -  I imagine I'm doing something horribly wrong,
>
> Well yes, particularly for this code, calling methods on a null object ??? 
>  -
>
>  if (mCamera == null) {
>             mCamera.setPreviewDisplay(holder); ...
>
>
> I'd suggest waiting a little after starting the Camera Preview before 
> initiating a call to autofocus, say 500ms to 1 second, this is to give the 
> camera some time to settle after it has just been opened.
>
>
> I'd also suggest that you do this asynchronously, eg -
>
>
> // Need handler for callbacks to the UI thread
> final Handler mHandler = new Handler();
>
>
> mHandler.postDelayed(new Runnable()
> {
>    @Override
>    public void run()
>    {
>       doAutoFocus(..
>    }
>              
> }, 500 );
>
>
> Regards
>
>
Ok, well, the good news is that doing this let it get into the callback 
with success == true.  And I think I saw the preview display sharpen.  
However, the resulting stored video seems to be the same.  It's still 
fuzzy. 

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/7bd14e04-5edf-4d35-9d84-233190daaa0d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to