I ran your code.
I think it was working. Then it crashed:
08-07 19:44:05.724: W/CameraView(5786): Exception:
08-07 19:44:05.724: W/CameraView(5786): java.lang.RuntimeException:
setParameters failed
08-07 19:44:05.724: W/CameraView(5786): at
android.hardware.Camera.native_setParameters(Native Method)
08-07 19:44:05.724: W/CameraView(5786): at
android.hardware.Camera.setParameters(Camera.java:1468)
08-07 19:44:05.724: W/CameraView(5786): at
com.example.cameratest.CameraView.surfaceChanged(CameraView.java:33)
08-07 19:44:05.724: W/CameraView(5786): at
android.view.SurfaceView.updateWindow(SurfaceView.java:586)
08-07 19:44:05.724: W/CameraView(5786): at
android.view.SurfaceView.access$000(SurfaceView.java:81)
08-07 19:44:05.724: W/CameraView(5786): at
android.view.SurfaceView$3.onPreDraw(SurfaceView.java:169)
08-07 19:44:05.724: W/CameraView(5786): at
android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:590)
08-07 19:44:05.724: W/CameraView(5786): at
android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1829)
08-07 19:44:05.724: W/CameraView(5786): at
android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2658)
08-07 19:44:05.724: W/CameraView(5786): at
android.os.Handler.dispatchMessage(Handler.java:99)
08-07 19:44:05.724: W/CameraView(5786): at
android.os.Looper.loop(Looper.java:137)
08-07 19:44:05.724: W/CameraView(5786): at
android.app.ActivityThread.main(ActivityThread.java:4514)
08-07 19:44:05.724: W/CameraView(5786): at
java.lang.reflect.Method.invokeNative(Native Method)
08-07 19:44:05.724: W/CameraView(5786): at
java.lang.reflect.Method.invoke(Method.java:511)
08-07 19:44:05.724: W/CameraView(5786): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:980)
08-07 19:44:05.724: W/CameraView(5786): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:747)
08-07 19:44:05.724: W/CameraView(5786): at
dalvik.system.NativeStart.main(Native Method)
On Tuesday, August 7, 2012 7:36:30 AM UTC-5, Tobias Reich wrote:
Hello everyone,
I have some serious problems with my GL SurfaceView rendering on a
Camera-Preview.
The transparent pixels/fragments I rasterize are giving wrong colors.
Since I'm not sure if my phone has a problem (it is working on the S1 and
the S2 but not the Galaxy S3) I wanted to ask anyone here to try my code.
Would you please do this for me and tell me at least if it works or not. Or
perhaps if you have the same problem, we may find a solution for this.
Thank you very much!
Tobias
P.S. You can find an image that shows my problem here:
https://dl.dropbox.com/u/13527005/glProblem.jpg
and if you don't want to compile my Test-Project you may find an apk here:
https://dl.dropbox.com/u/13527005/CameraGLTest.apk
Please help me!
--
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