Hello,

The SDK 1.6 is now out, but does someone knows when it will be pushed
on hardware ? I am a bit concerned, because I submitted and
application to the ADC2 that crash when I run it on 1.6. It works well
on 1.5.
I hope Google will not update users phone before the end of the ADC2,
otherwise our application will not work.

For the records, here is the problem and the solution.
The problem lies in the Camera.startPreview : an error is reported in
logcat
E/CameraService(  554): registerBuffers failed with status -38
followed by an exception :
java.lang.RuntimeException: startPreview failed

The problem is solved by changing the surface holder type :
mHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);

On 1.5, commenting this line just hide the camera preview from the
surface, but do not crash.

Regards,
JP.

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

Reply via email to