[android-developers] Re: OpenGL and Camera Problem

2012-08-07 Thread bob
Seemed like it was working on the Galaxy S3, then another crash:

W/CameraView( 6405): Exception:
W/CameraView( 6405): java.lang.RuntimeException: setParameters failed
W/CameraView( 6405): at android.hardware.Camera.native_setParameters(Native 
Method)
W/CameraView( 6405): at 
android.hardware.Camera.setParameters(Camera.java:1468)
W/CameraView( 6405): at 
com.example.cameratest.CameraView.surfaceChanged(CameraView.java:34)
W/CameraView( 6405): at 
android.view.SurfaceView.updateWindow(SurfaceView.java:586)
W/CameraView( 6405): at 
android.view.SurfaceView.access$000(SurfaceView.java:81)
W/CameraView( 6405): at 
android.view.SurfaceView$3.onPreDraw(SurfaceView.java:169)
W/CameraView( 6405): at 
android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:590)
W/CameraView( 6405): at 
android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1829)
W/CameraView( 6405): at 
android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2658)
W/CameraView( 6405): at android.os.Handler.dispatchMessage(Handler.java:99)
W/CameraView( 6405): at android.os.Looper.loop(Looper.java:137)
W/CameraView( 6405): at 
android.app.ActivityThread.main(ActivityThread.java:4514)
W/CameraView( 6405): at java.lang.reflect.Method.invokeNative(Native Method)
W/CameraView( 6405): at java.lang.reflect.Method.invoke(Method.java:511)
W/CameraView( 6405): at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:980)
W/CameraView( 6405): at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:747)
W/CameraView( 6405): at dalvik.system.NativeStart.main(Native Method)

On Tuesday, August 7, 2012 4:12:53 PM UTC-5, Tobias Reich wrote:

 Hello together,
 I recently reported about a problem with my OpenGl ES Scene drawn on top 
 of a camera preview on my Galaxy S3.
 I made a second test and tried it with OpenGL1.0
 Still, the colors of transparent fragments don't match.
 Has anyone any idea about that? What changed? After all on my S1 and my S2 
 everything works fine, even if I create a GLSurfaceView on top of my Camera 
 Preview.
 I attached my project so everyone can try.
 Thanks for your help,
  Tobias


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

[android-developers] Re: OpenGL and Camera Problem

2012-08-07 Thread Tobias Reich
Huh, that is strange.
So it worked and than it crashed? And it looks like it was crashing at the 
setParameters();
That is a place where it shoudln't crash at all!!
Which Android Version do you have? Did you take the complete project? So 
there is no mistake in the Manifest (e.g. for the Camera rights)?
Thank you anyway. I just got some other replys that it didn't work on other 
phones as well. So I wonder what was changed.
Does anyone know a working Augmented Reality App for the S3?
Anyway, thank you for your help,
 Tobias

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