{"action":"opened","issue":{"url":"https://api.github.com/repos/josnidhin/Android-Camera-Example/issues/12","labels_url":"https://api.github.com/repos/josnidhin/Android-Camera-Example/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/josnidhin/Android-Camera-Example/issues/12/comments","events_url":"https://api.github.com/repos/josnidhin/Android-Camera-Example/issues/12/events","html_url":"https://github.com/josnidhin/Android-Camera-Example/issues/12","id":64219821,"number":12,"title":"setParameters failed","user":{"login":"theGlenn","id":3216616,"avatar_url":"https://avatars.githubusercontent.com/u/3216616?v=3","gravatar_id":"","url":"https://api.github.com/users/theGlenn","html_url":"https://github.com/theGlenn","followers_url":"https://api.github.com/users/theGlenn/followers","following_url":"https://api.github.com/users/theGlenn/following{/other_user}","gists_url":"https://api.github.com/users/theGlenn/gists{/gist_id}","starred_url":"https://api.github.com/users/theGlenn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theGlenn/subscriptions","organizations_url":"https://api.github.com/users/theGlenn/orgs","repos_url":"https://api.github.com/users/theGlenn/repos","events_url":"https://api.github.com/users/theGlenn/events{/privacy}","received_events_url":"https://api.github.com/users/theGlenn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-25T09:02:43Z","updated_at":"2015-03-25T09:02:43Z","closed_at":null,"body":"When I run the app I get this error.\r\nTested on Nexus 5.\r\n\r\n```\r\njava.lang.RuntimeException: setParameters failed\r\n            at android.hardware.Camera.native_setParameters(Native Method)\r\n            at android.hardware.Camera.setParameters(Camera.java:1876)\r\n            at com.example.cam.Preview.surfaceChanged(Preview.java:159)\r\n            at android.view.SurfaceView.updateWindow(SurfaceView.java:590)\r\n            at android.view.SurfaceView$3.onPreDraw(SurfaceView.java:176)\r\n            at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:847)\r\n            at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1956)\r\n            at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1054)\r\n            at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5779)\r\n            at android.view.Choreographer$CallbackRecord.run(Choreographer.java:767)\r\n            at android.view.Choreographer.doCallbacks(Choreographer.java:580)\r\n            at android.view.Choreographer.doFrame(Choreographer.java:550)\r\n            at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753)\r\n            at android.os.Handler.handleCallback(Handler.java:739)\r\n            at android.os.Handler.dispatchMessage(Handler.java:95)\r\n            at android.os.Looper.loop(Looper.java:135)\r\n            at android.app.ActivityThread.main(ActivityThread.java:5221)\r\n            at java.lang.reflect.Method.invoke(Native Method)\r\n            at java.lang.reflect.Method.invoke(Method.java:372)\r\n            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)\r\n            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)\r\n```"}}