MahadevaSwamy L

Adding Camera to Android based IMX53 ARD board

Discussion created by MahadevaSwamy L on Apr 18, 2012
Latest reply on Apr 19, 2012 by Daiane Angolini

Hi,

Please help me to configure the camera for Android(2.3.4) based IMX53 ARD board. Currently it crashes if I click the camera app. It says "Sorry!, The application Camera (process com.android.camera) has stopped unexpectedly. Please try again).

 

I have attached the logcat for this error

===============================

--------- beginning of /dev/log/system
I/ActivityManager( 2186): Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.android.camera/.Camera } from pid 2284
I/SurfaceFlinger( 2186): mHw->getFormat() 4
I/ActivityManager( 2186): Start proc com.android.camera for activity com.android.camera/.Camera: pid=2525 uid=10025 gids={1006, 1015}
W/dalvikvm( 2525): Exception Ljava/lang/NullPointerException; thrown while initializing Lcom/android/camera/CameraSettings;
D/AndroidRuntime( 2525): Shutting down VM
W/dalvikvm( 2525): threadid=1: thread exiting with uncaught exception (group=0x40015560)
E/AndroidRuntime( 2525): FATAL EXCEPTION: main
E/AndroidRuntime( 2525): java.lang.ExceptionInInitializerError
E/AndroidRuntime( 2525):        at com.android.camera.Camera.onCreate(Camera.java:891)
E/AndroidRuntime( 2525):        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
E/AndroidRuntime( 2525):        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
E/AndroidRuntime( 2525):        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
E/AndroidRuntime( 2525):        at android.app.ActivityThread.access$1500(ActivityThread.java:117)
E/AndroidRuntime( 2525):        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
E/AndroidRuntime( 2525):        at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 2525):        at android.os.Looper.loop(Looper.java:130)
E/AndroidRuntime( 2525):        at android.app.ActivityThread.main(ActivityThread.java:3683)
E/AndroidRuntime( 2525):        at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 2525):        at java.lang.reflect.Method.invoke(Method.java:507)
E/AndroidRuntime( 2525):        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
E/AndroidRuntime( 2525):        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
E/AndroidRuntime( 2525):        at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 2525): Caused by: java.lang.NullPointerException
E/AndroidRuntime( 2525):        at com.android.camera.CameraSettings.<clinit>(CameraSettings.java:63)
E/AndroidRuntime( 2525):        ... 14 more
W/ActivityManager( 2186):   Force finishing activity com.android.camera/.Camera
W/ActivityManager( 2186): Activity pause timeout for HistoryRecord{406e6458 com.android.camera/.Camera}
W/InputManagerService( 2186): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@406c0568
I/Process ( 2525): Sending signal. PID: 2525 SIG: 9
I/ActivityManager( 2186): Process com.android.camera (pid 2525) has died.

Regards,

Swamy

Outcomes