I've found that you have to write firmware and or hardware specific
camera code.  As such I didn't touch the code inherited that worked on
every Android handset.

But it doesn't work on the Nexus.  Mind you I saw similar
"setParameters failed" errors on other handsets in the logs, but it
just seemed like the sort of silent error I expect the Android
framework to make.  Everything worked on the other handsets, it just
had error messages in the log.  Now it crashes the app.


I request an SDK update.  Also can we get a blog post about best
practices for using the camera?

I would also like a cookie.

Thanks a bunch, exception details follow:

01-08 15:58:11.548: WARN/System.err(5376): java.lang.RuntimeException:
setParameters failed
01-08 15:58:11.568: WARN/System.err(5376):     at
android.hardware.Camera.native_setParameters(Native Method)
01-08 15:58:11.578: WARN/System.err(5376):     at
android.hardware.Camera.setParameters(Camera.java:619)
01-08 15:58:11.578: WARN/System.err(5376):     at
com.company.apps.activities.Preview.surfaceChanged(activityname.java:
154)
01-08 15:58:11.578: WARN/System.err(5376):     at
android.view.SurfaceView.updateWindow(SurfaceView.java:460)
01-08 15:58:11.578: WARN/System.err(5376):     at
android.view.SurfaceView.dispatchDraw(SurfaceView.java:287)
01-08 15:58:11.578: WARN/System.err(5376):     at
android.view.ViewGroup.drawChild(ViewGroup.java:1529)
01-08 15:58:11.578: WARN/System.err(5376):     at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258)
01-08 15:58:11.578: WARN/System.err(5376):     at
android.view.View.draw(View.java:6538)
01-08 15:58:11.578: WARN/System.err(5376):     at
android.widget.FrameLayout.draw(FrameLayout.java:352)
01-08 15:58:11.578: WARN/System.err(5376):     at
android.view.ViewGroup.drawChild(ViewGroup.java:1531)
01-08 15:58:11.578: WARN/System.err(5376):     at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258)
01-08 15:58:11.578: WARN/System.err(5376):     at
android.view.View.draw(View.java:6538)
01-08 15:58:11.578: WARN/System.err(5376):     at
android.widget.FrameLayout.draw(FrameLayout.java:352)
01-08 15:58:11.578: WARN/System.err(5376):     at
com.android.internal.policy.impl.PhoneWindow$DecorView.draw
(PhoneWindow.java:1830)
01-08 15:58:11.578: WARN/System.err(5376):     at
android.view.ViewRoot.draw(ViewRoot.java:1349)
01-08 15:58:11.588: WARN/System.err(5376):     at
android.view.ViewRoot.performTraversals(ViewRoot.java:1114)
01-08 15:58:11.588: WARN/System.err(5376):     at
android.view.ViewRoot.handleMessage(ViewRoot.java:1633)
01-08 15:58:11.588: WARN/System.err(5376):     at
android.os.Handler.dispatchMessage(Handler.java:99)
01-08 15:58:11.588: WARN/System.err(5376):     at
android.os.Looper.loop(Looper.java:123)
01-08 15:58:11.588: WARN/System.err(5376):     at
android.app.ActivityThread.main(ActivityThread.java:4363)
01-08 15:58:11.588: WARN/System.err(5376):     at
java.lang.reflect.Method.invokeNative(Native Method)
01-08 15:58:11.588: WARN/System.err(5376):     at
java.lang.reflect.Method.invoke(Method.java:521)
01-08 15:58:11.588: WARN/System.err(5376):     at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
(ZygoteInit.java:860)
01-08 15:58:11.598: WARN/System.err(5376):     at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
01-08 15:58:11.598: WARN/System.err(5376):     at
dalvik.system.NativeStart.main(Native Method)
01-08 15:58:11.598: ERROR/
com.company.apps.activities.activityname.Preview(5376): ERROR DURING
surfaceChanged, QUITTING ACTIVITY
01-08 15:58:11.628: WARN/InputManagerService(67): Starting input on
non-focused client com.android.internal.view.IInputMethodClient$Stub
$pr...@44a1eaa8 (uid=10045 pid=5376)
-- 
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

Reply via email to