Hi all,
I'm using custom board based on i.MX53 smd, and Android r10.4. I'm trying to get ov (csi interface )camera to work.
also /dev/video0 is created ,but when I try to open system application "Camera", i have exception:
I/ActivityManager( 2170): Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.android.camera/.Camera bnds=[599,25][685,99] } from pid 2240
I/SurfaceFlinger( 2170): mHw->getFormat() 5
I/ActivityManager( 2170): Start proc com.android.camera for activity com.android.camera/.Camera: pid=2457 uid=10021 gids={1006, 1015}
V/AudioPolicyManagerBase( 2129): stopOutput() output 1, stream 1, session 4
V/AudioPolicyManagerBase( 2129): changeRefCount() stream 1, count 0
V/AudioPolicyManagerBase( 2129): getNewDevice() selected device 0
V/AudioPolicyManagerBase( 2129): setOutputDevice() output 1 device 0 delayMs 0
V/AudioPolicyManagerBase( 2129): setOutputDevice() setting same device 0 or null device for output 1
W/dalvikvm( 2457): Exception Ljava/lang/NullPointerException; thrown while initializing Lcom/android/camera/CameraSettings;
D/AndroidRuntime( 2457): Shutting down VM
W/dalvikvm( 2457): threadid=1: thread exiting with uncaught exception (group=0x40015560)
E/AndroidRuntime( 2457): FATAL EXCEPTION: main
E/AndroidRuntime( 2457): java.lang.ExceptionInInitializerError
E/AndroidRuntime( 2457): at com.android.camera.Camera.onCreate(Camera.java:891)
E/AndroidRuntime( 2457): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
E/AndroidRuntime( 2457): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
E/AndroidRuntime( 2457): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
E/AndroidRuntime( 2457): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
E/AndroidRuntime( 2457): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
E/AndroidRuntime( 2457): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 2457): at android.os.Looper.loop(Looper.java:130)
E/AndroidRuntime( 2457): at android.app.ActivityThread.main(ActivityThread.java:3683)
E/AndroidRuntime( 2457): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 2457): at java.lang.reflect.Method.invoke(Method.java:507)
E/AndroidRuntime( 2457): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
E/AndroidRuntime( 2457): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
E/AndroidRuntime( 2457): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 2457): Caused by: java.lang.NullPointerException
E/AndroidRuntime( 2457): at com.android.camera.CameraSettings.<clinit>(CameraSettings.java:63)
E/AndroidRuntime( 2457): ... 14 more
W/ActivityManager( 2170): Force finishing activity com.android.camera/.Camera
W/ActivityManager( 2170): Activity pause timeout for HistoryRecord{40733300 com.android.camera/.Camera}
even I'm trying to get UVC camera to work , in this case also i am getting same error , please suggest me how to resolve this issue .
Regards,
Rajput
Hello,
I have similar problem. I removed default camera apk and use android-webcam/android-webcam-library at master · openxc/android-webcam · GitHub
Regards,
Toxic
Thank you for reply Toxic,
the link which you provided is work only USB base webcam , will it work for inbuilt cam? in my case my board is having internal camera (csi interface ) , and i am using ov5642 driver for it.
so, plz suggest me on this case .
Regards,
Rajput
plz anyone help me to resolve this exception :smileyplain:
Im not sure, just try it :-)