Skip to content Skip to sidebar Skip to footer

Android - Camera Functionality Howto

I'm using the example from the SDK (CameraPreview) and also the example from this site http://marakana.com/forums/android/android_examples/39.html When I run it, both gives this er

Solution 1:

Ok, my debugger decided to work again now.

Traced it down to this line. camera.setParameters(parameters); That piece of code somehow killed the app.

Looks like you need to check it by getSupportedPictureSizes first before setting the parameter.(I have yet to try this part tho).

Solution 2:

To see what the actual Exception is (plus it's path trace) you need to execute adb logcat.

To run the debugger, you simply wait 'till the "Waiting for debugger. Force close" dialog disappears.

Post a Comment for "Android - Camera Functionality Howto"