AnsweredAssumed Answered

Android r10.2 UVC Camera problem

Question asked by Toxic Avenger on May 22, 2013
Latest reply on Jun 5, 2013 by Qiang Li - Mpu Se
Branched to a new discussion

Hello,

I'm using custom board based on i.MX53 QSB, and Android r10.2. I'm trying to get UVC camera to work.

My camera is recognised as WebCam-HM2055

Camera is visible, when it is connected:

uvcvideo: Found UVC 1.00 device WebCam-HM2055 (058f:5608)

input: WebCam-HM2055 as /devices/platform/fsl-ehci.0/usb1/1-1/1-1:1.0/input/input3

Also /dev/video0 is created.

Also Android application: openxc/android-webcam · GitHub

gets preview from camera, but when I try to open system application "Camera", i have exception:

 

I/ActivityManager( 2367): Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.android.camera/.Camera } from pid 2422

I/SurfaceFlinger( 2367): mHw->getFormat() 4

I/ActivityManager( 2367): Start proc com.android.camera for activity com.android.camera/.Camera: pid=2695 uid=10030 gids={1006, 1015}

I/WindowManager( 2367): Setting rotation to 1, animFlags=1

I/ActivityManager( 2367): Config changed: { scale=1.0 imsi=0/0 loc=en_US touch=3 keys=1/1/2 nav=1/1 orien=2 layout=34 uiMode=17 seq=4}

W/dalvikvm( 2695): Exception Ljava/lang/NullPointerException; thrown while initializing Lcom/android/camera/CameraSettings;

D/AndroidRuntime( 2695): Shutting down VM

W/dalvikvm( 2695): threadid=1: thread exiting with uncaught exception (group=0x2aac0560)

E/AndroidRuntime( 2695): FATAL EXCEPTION: main

E/AndroidRuntime( 2695): java.lang.ExceptionInInitializerError

E/AndroidRuntime( 2695):        at com.android.camera.Camera.onCreate(Camera.java:891)

E/AndroidRuntime( 2695):        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)

E/AndroidRuntime( 2695):        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)

E/AndroidRuntime( 2695):        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)

E/AndroidRuntime( 2695):        at android.app.ActivityThread.access$1500(ActivityThread.java:117)

E/AndroidRuntime( 2695):        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)

E/AndroidRuntime( 2695):        at android.os.Handler.dispatchMessage(Handler.java:99)

E/AndroidRuntime( 2695):        at android.os.Looper.loop(Looper.java:123)

E/AndroidRuntime( 2695):        at android.app.ActivityThread.main(ActivityThread.java:3683)

E/AndroidRuntime( 2695):        at java.lang.reflect.Method.invokeNative(Native Method)

E/AndroidRuntime( 2695):        at java.lang.reflect.Method.invoke(Method.java:507)

E/AndroidRuntime( 2695):        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)

E/AndroidRuntime( 2695):        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)

E/AndroidRuntime( 2695):        at dalvik.system.NativeStart.main(Native Method)

E/AndroidRuntime( 2695): Caused by: java.lang.NullPointerException

E/AndroidRuntime( 2695):        at com.android.camera.CameraSettings.<clinit>(CameraSettings.java:63)

E/AndroidRuntime( 2695):        ... 14 more

W/ActivityManager( 2367):   Force finishing activity com.android.camera/.Camera

I/WindowManager( 2367): Setting rotation to 0, animFlags=1

I/ActivityManager( 2367): Config changed: { scale=1.0 imsi=0/0 loc=en_US touch=3 keys=1/1/2 nav=1/1 orien=1 layout=34 uiMode=17 seq=5}

W/ActivityManager( 2367): Activity pause timeout for HistoryRecord{2b1c6258 com.android.camera/.Camera}

D/dalvikvm( 2367): GC_EXPLICIT freed 456K, 45% free 4072K/7303K, external 1402K/4560K, paused 58ms

W/ActivityManager( 2367): Activity destroy timeout for HistoryRecord{2b1c6258 com.android.camera/.Camera}

 

I would like to get this camera working in Android system, not only in openxc android webcam application


Best regards,

Toxis


Outcomes