Have you added the Camera permission to the manifest?

On Jun 12, 11:32 am, Urizev <[email protected]> wrote:
> I am developing an application which uses the camera of my G2. The
> code using the camera is showed below:
>
>                 Camera cam = Camera.open();
>                 if (cam == null) {
>                         return;
>                 }
>
>                 cam.startPreview();
>
> It throws and XXXX Exception and I do not know why. Someone has any
> idea?
>
> com.sun.jdi.InvocationException occurred invoking
>
> Regards
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to