views:

135

answers:

1

Hi , i tried running "Photo capture example" in android emulator ,

http://labs.makemachine.net/wp-content/uploads/2010/03/2010_04_09_make_machine_photo_capture.zip

when the photocapture example is loaded in android emulator , it shows the screen with “No Image” Text and “Take Photo” button. as follows,

alt text

if i click on “Take Photo: Button then a camera window appears with a “black and white boxes” and after that a run time error generated to forcefully close the application.

As far as sd card is concerned i have created it using AVD manager in eclipse. after that i have set one image file also and mount the sdcard.

But still not be able to take the photo , so please tell me what is require to run this program.

A: 

Are you running on a 2.2 AVD (API level 8)? The Camera app on the FroYo SDK is horribly, inexcusably broken. Try testing on a different SDK version.

Neil Traft
Yes i am using Android 2.2 sdk. so what else should i use to run this application ?
Hunt
Create an AVD with 2.1 as the target. I doubt you're using any APIs that don't exist in the older version. You should try to support the oldest SDK that you can. As you can see in [this chart](http://developer.android.com/resources/dashboard/platform-versions.html) 30% of all Android users are still stuck with a pre-2.0 OS.
Neil Traft