on-internet
← Community

startPreview failed but not all devices

Stack Overflow ·

I'm getting an error startPreview failed but not all devices. In Motorola RAZR and Samsung Galaxy S3, it's working very well. Some people told me they got the same problem in other devices (Galaxy SII Lite, Galaxy Ace Duos, Samsung Galaxy Y, etc) I'm trying to test in a Samsung Galaxy Y and here's what I got in Logcat java.lang.RuntimeException: startPreview failed at android.hardware.Camera.startPreview(Native Method) at br.com.timo.tubagram.CameraSurfaceView.surfaceCreated(CameraSurfaceView.java:47) at android.view.SurfaceView.updateWindow(SurfaceView.java:601) at android.view.SurfaceView.up

Comments

Sign in or sign up to comment and upvote.

No comments yet.