The Android SDK has an API demo for using the preview of the camera. However, this gives me a runtime exception in the emulator. I’m running with Eclipse on a Mac with 10.6
Here’s the link where I grabbed the code:
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Make sure you have set permissions in the AndroidManifest.xml file for using the camera. Place this line above the application tag.