Hi, I have an log report about an IOException at autoFocus in Camera. Code also shows that an IOE is thrown. But I can't catch it in my App because the framework doesn't know about this exception. Eclipse reports me an error about an unreachable code.
Hardware_Camera.cpp, look for android_hardware_Camera_autoFocus: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/jni/android_hardware_Camera.cpp My log: E/AndroidRuntime( 7249): Uncaught handler: thread main exiting due to uncaught exception E/AndroidRuntime( 7249): java.lang.RuntimeException: java.lang.reflect.InvocationTargetException E/AndroidRuntime( 7249): at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:540) E/AndroidRuntime( 7249): at dalvik.system.NativeStart.main(Native Method) E/AndroidRuntime( 7249): Caused by: java.lang.reflect.InvocationTargetException E/AndroidRuntime( 7249): at android.app.ActivityThread.main (ActivityThread.java:3952) E/AndroidRuntime( 7249): at java.lang.reflect.Method.invokeNative (Native Method) E/AndroidRuntime( 7249): at java.lang.reflect.Method.invoke (Method.java:521) E/AndroidRuntime( 7249): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:782) E/AndroidRuntime( 7249): ... 2 more E/AndroidRuntime( 7249): Caused by: java.io.IOException: autoFocus failed E/AndroidRuntime( 7249): at android.hardware.Camera.native_autoFocus (Native Method) E/AndroidRuntime( 7249): at android.hardware.Camera.autoFocus (Camera.java:313) E/AndroidRuntime( 7249): at de.softxperience.android.noteeverything.TakePhoto.autoFocus (TakePhoto.java:200) E/AndroidRuntime( 7249): at de.softxperience.android.noteeverything.TakePhoto.doFocus (TakePhoto.java:168) E/AndroidRuntime( 7249): at de.softxperience.android.noteeverything.TakePhoto.access$2 (TakePhoto.java:166) E/AndroidRuntime( 7249): at de.softxperience.android.noteeverything.TakePhoto$2.onTouch (TakePhoto.java:85) E/AndroidRuntime( 7249): at android.view.View.dispatchTouchEvent (View.java:3382) E/AndroidRuntime( 7249): at android.view.ViewGroup.dispatchTouchEvent (ViewGroup.java:801) E/AndroidRuntime( 7249): at android.view.ViewGroup.dispatchTouchEvent (ViewGroup.java:801) E/AndroidRuntime( 7249): at android.view.ViewGroup.dispatchTouchEvent (ViewGroup.java:801) E/AndroidRuntime( 7249): at com.android.internal.policy.impl.PhoneWindow $DecorView.superDispatchTouchEvent(PhoneWindow.java:1710) E/AndroidRuntime( 7249): at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent (PhoneWindow.java:1197) E/AndroidRuntime( 7249): at android.app.Activity.dispatchTouchEvent (Activity.java:1993) E/AndroidRuntime( 7249): at com.android.internal.policy.impl.PhoneWindow $DecorView.dispatchTouchEvent(PhoneWindow.java:1694) E/AndroidRuntime( 7249): at android.view.ViewRoot.handleMessage (ViewRoot.java:1525) E/AndroidRuntime( 7249): at android.os.Handler.dispatchMessage (Handler.java:99) E/AndroidRuntime( 7249): at android.os.Looper.loop(Looper.java:123) E/AndroidRuntime( 7249): ... 6 more --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

