Hello,

I've encountered a startPreview failed RuntimeException in Android 1.6
where it worked fine in 1.5.  I intercept a frame from the camera
preview, process it, then redraw it on the surface.  I had to use
SURFACE_TYPE_NORMAL because TYPE_PUSH_BUFFERS does not agree with
lockCanvas( ).

My question is:  is it possible to use TYPE_NORMAL with camera
preview??

Thanks much!!

More info below
============
10-13 22:09:04.677: DEBUG/CameraService(542): Client::Client E (pid
1345)
10-13 22:09:04.677: DEBUG/CameraHardwareStub(542): initHeapLocked:
preview size=176x144
10-13 22:09:04.695: ERROR/MediaPlayer(542): Unable to to create media
player
10-13 22:09:04.695: ERROR/CameraService(542): Failed to load
CameraService sounds.
10-13 22:09:04.695: ERROR/MediaPlayer(542): Unable to to create media
player
10-13 22:09:04.695: ERROR/CameraService(542): Failed to load
CameraService sounds.
10-13 22:09:04.695: DEBUG/CameraService(542): Client::Client X (pid
1345)
10-13 22:09:04.695: DEBUG/CameraService(542): CameraService::connect X
10-13 22:09:04.695: DEBUG/CameraService(542): setPreviewDisplay
(0xea68) (pid 1345)
10-13 22:09:04.695: DEBUG/CameraService(542): getParameters(picture-
format=jpeg;picture-size=213x350;preview-format=yuv422sp;preview-frame-
rate=15;preview-size=176x144)
10-13 22:09:04.705: DEBUG/CameraService(542): setParameters(picture-
size=213x350;preview-frame-rate=15;preview-size=240x160;picture-
format=jpeg;preview-format=yuv422sp)
10-13 22:09:04.705: DEBUG/CameraHardwareStub(542): initHeapLocked:
preview size=240x160
10-13 22:09:04.705: DEBUG/CameraService(542): startPreview (pid 1345)
10-13 22:09:04.705: DEBUG/CameraService(542): startCameraMode(0) (pid
1345)
10-13 22:09:04.705: DEBUG/CameraService(542): startPreviewMode (pid
1345)
10-13 22:09:04.726: ERROR/CameraService(542): registerBuffers failed
with status -38
10-13 22:09:04.736: DEBUG/AndroidRuntime(1345): Shutting down VM
10-13 22:09:04.736: WARN/dalvikvm(1345): threadid=3: thread exiting
with uncaught exception (group=0x4001aa28)
10-13 22:09:04.746: ERROR/AndroidRuntime(1345): Uncaught handler:
thread main exiting due to uncaught exception
10-13 22:09:04.765: DEBUG/Camera-JNI(1345): dataCallback(4, 0x1b25e0)
10-13 22:09:04.775: ERROR/AndroidRuntime(1345):
java.lang.RuntimeException: startPreview failed
10-13 22:09:04.775: ERROR/AndroidRuntime(1345):     at
android.hardware.Camera.startPreview(Native Method)
10-13 22:09:04.775: ERROR/AndroidRuntime(1345):     at
my.example.mycameraone.Preview.surfaceChanged(MyCamera.java:526)
10-13 22:09:04.775: ERROR/AndroidRuntime(1345):     at
android.view.SurfaceView.updateWindow(SurfaceView.java:398)
10-13 22:09:04.775: ERROR/AndroidRuntime(1345):     at
android.view.SurfaceView.dispatchDraw(SurfaceView.java:264)

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