View Single Post
Old November 26th, 2012, 11:16 AM   #1 (permalink)
alex belex
New Member
Thread Author (OP)
 
Join Date: Nov 2012
Posts: 8
 
Device(s): axioo vigo , Speedata MT35A
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default camera force close in app when take photo

i have an apk app which can take photo and take video with a button.

I have first device running the app and I have 2 button, take photo and take video.
When I click take video in this app and it works well but when i click take picture from the button, the app always "force closes".
this is my error logcat


[HIGH]
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(Came ra.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.handleMessag e(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.jav a: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$MethodAndArgsCa ller.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[/HIGH]

When i try to run it on other device, this app works perfectly.
How to fix this, So that i can run and take photos in my first device?
BR.

Alex
alex belex is offline  
Last edited by alex belex; November 26th, 2012 at 11:20 AM. Reason: log code
Reply With Quote