1. Check out our companion app, Forums for Android! Download from Google Play

camera force close in app speedata MT35A

Discussion in 'Android Devices' started by alex belex, Nov 19, 2012.

  1. alex belex

    alex belex Member
    Thread Starter
    5

    Nov 19, 2012
    8
    0
    5
    i create and I am following this tutorial

    labs.makemachine.net/2010/03/simple-android-photo-capture/

    the application cant work when i switched to a different device

    This application works in axioo vigo

    But when I try to run it on Speedata MT35A, when I take the picture, error occurs and it is force closed.

    I have used permission camera in manifest and I tried clearing data/cache in this app and the camera, but still error.

    this is my logcat


    11-19 14:43:27.085: ERROR/AndroidRuntime(6903): FATAL EXCEPTION: main
    11-19 14:43:27.085: ERROR/AndroidRuntime(6903): java.lang.NullPointerException
    11-19 14:43:27.085: ERROR/AndroidRuntime(6903): at com.android.camera.Camera.initializeFirstTime(Camera.java:328)
    11-19 14:43:27.085: ERROR/AndroidRuntime(6903): at com.android.camera.Camera.access$1100(Camera.java:95)
    11-19 14:43:27.085: ERROR/AndroidRuntime(6903): at com.android.camera.Camera$MainHandler.handleMessage(Camera.java:282)
    11-19 14:43:27.085: ERROR/AndroidRuntime(6903): at android.os.Handler.dispatchMessage(Handler.java:99)
    11-19 14:43:27.085: ERROR/AndroidRuntime(6903): at android.os.Looper.loop(Looper.java:130)
    11-19 14:43:27.085: ERROR/AndroidRuntime(6903): at android.app.ActivityThread.main(ActivityThread.java:3683)
    11-19 14:43:27.085: ERROR/AndroidRuntime(6903): at java.lang.reflect.Method.invokeNative(Native Method)
    11-19 14:43:27.085: ERROR/AndroidRuntime(6903): at java.lang.reflect.Method.invoke(Method.java:507)
    11-19 14:43:27.085: ERROR/AndroidRuntime(6903): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
    11-19 14:43:27.085: ERROR/AndroidRuntime(6903): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
    11-19 14:43:27.085: ERROR/AndroidRuntime(6903): at dalvik.system.NativeStart.main(Native Method)
    11-19 14:43:27.093: WARN/ActivityManager(1308): Force finishing activity com.android.camera/.Camera
    11-19 14:43:27.109: WARN/ActivityManager(1308): Force finishing activity makemachine.android.examples/.PhotoCaptureExample


    How to fix this?

    Thanks.


    BR.


    Alex
     

    Advertisement

Share This Page

Loading...