You need to call startPreview() before takePicture. You also need to
supply a PictureCallback function to receive the encoded JPEG. By
passing null, you are telling the camera service you don't want the
final JPEG image.

On Jan 21, 2:50 am, ANDREA P <[email protected]> wrote:
> I want to use the camera to make a photo snapshot with Android .....
>
> At the beginning in my code :
>
> Camera mCamera = Camera.open();
>
>         PictureCallback callback = null;
>         mCamera.takePicture(null, null, callback);
>
> but nothing doesn't happen !!!!
>
> And if I Use the program Camera of the phone Emulator says that I have
> to insert the SD  Card.....
>
> Please Help me......Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to