coomar2841 / image-chooser-library

An Easy Image/Video Chooser Library for your Android Apps
646 stars 192 forks source link

Pick video from camera in < Android 2.3 #7

Closed hidabe closed 11 years ago

hidabe commented 11 years ago

I have found one error picking video from Camera in Android 2.3 or before. Error is: 08-21 13:03:00.900: E/AndroidRuntime(23720): at com.sec.android.app.camera.CamcorderEngine.renameTempFile(CamcorderEngine.java:1357)

I have found any information about it, http://stackoverflow.com/questions/10494839/verifiyandsetparameter-error-when-trying-to-record-video

It is MediaStore.EXTRA_OUTPUT issue

coomar2841 commented 11 years ago

Damn... Would look into that. May be handle this one off issue by writing some parallel code path.

coomar2841 commented 11 years ago

Checked with a 2.2.1 device, and it works fine. Is it a specific device that you are testing on? That information would probably help me in tracking this down.

hidabe commented 11 years ago

It is error: 08-26 09:27:31.579: E/AndroidRuntime(23102): FATAL EXCEPTION: main 08-26 09:27:31.579: E/AndroidRuntime(23102): java.lang.NullPointerException 08-26 09:27:31.579: E/AndroidRuntime(23102): at java.io.File.fixSlashes(File.java:205) 08-26 09:27:31.579: E/AndroidRuntime(23102): at java.io.File.init(File.java:189) 08-26 09:27:31.579: E/AndroidRuntime(23102): at java.io.File.(File.java:139) 08-26 09:27:31.579: E/AndroidRuntime(23102): at com.sec.android.app.camera.CamcorderEngine.renameTempFile(CamcorderEngine.java:1357) 08-26 09:27:31.579: E/AndroidRuntime(23102): at com.sec.android.app.camera.CamcorderEngine.doStopVideoRecordingSync(CamcorderEngine.java:853) 08-26 09:27:31.579: E/AndroidRuntime(23102): at com.sec.android.app.camera.CeStateRecording.handleRequest(CeStateRecording.java:69) 08-26 09:27:31.579: E/AndroidRuntime(23102): at com.sec.android.app.camera.CeRequestQueue.startFirstRequest(CeRequestQueue.java:123) 08-26 09:27:31.579: E/AndroidRuntime(23102): at com.sec.android.app.camera.CeRequestQueue.access$200(CeRequestQueue.java:32) 08-26 09:27:31.579: E/AndroidRuntime(23102): at com.sec.android.app.camera.CeRequestQueue$MainHandler.handleMessage(CeRequestQueue.java:60) 08-26 09:27:31.579: E/AndroidRuntime(23102): at android.os.Handler.dispatchMessage(Handler.java:99) 08-26 09:27:31.579: E/AndroidRuntime(23102): at android.os.Looper.loop(Looper.java:130) 08-26 09:27:31.579: E/AndroidRuntime(23102): at android.app.ActivityThread.main(ActivityThread.java:3691) 08-26 09:27:31.579: E/AndroidRuntime(23102): at java.lang.reflect.Method.invokeNative(Native Method) 08-26 09:27:31.579: E/AndroidRuntime(23102): at java.lang.reflect.Method.invoke(Method.java:507) 08-26 09:27:31.579: E/AndroidRuntime(23102): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:912) 08-26 09:27:31.579: E/AndroidRuntime(23102): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:670) 08-26 09:27:31.579: E/AndroidRuntime(23102): at dalvik.system.NativeStart.main(Native Method)

I occurs in 2.3.7 in various smartphones

coomar2841 commented 11 years ago

That's strange. Could you try logging the file path that gets passed to the VideoChooserManager? And is this happening on your app or on the sample app on the Play store as well? Another thing to check if the SDCard is present and mounted.

hidabe commented 11 years ago

It too occurs in your sample app :( in two diferent smartphones.

I dont can provide file path, because it is null.

Please, try it, your sample app, in Android 2.3.x

Thanks!

coomar2841 commented 11 years ago

Haven't had got a chance to get hold of a 2.3 device. The emulator is not suitable for testing video capture stuff.

coomar2841 commented 11 years ago

I have done a workaround. Would you be able to check once and confirm? You probably would need to update your repo's code else, you can update the app on the market and check with that app.

hidabe commented 11 years ago

Gooooood!!! thanks dude, it work now. I have updated the library and my app work now. But, your demo app dont work, it is strange, maybe that it not is updated so.

coomar2841 commented 11 years ago

May be the updated APK hasn't hit the stores yet. :)

puth commented 9 years ago

My file is png but after I use this library it content type change to jpeg