Hi,

I know that the Android's sample api has a CameraPreview code, but it
is completely useless. It shows the camera on screen, but has no ways
to actually take a picture.

Is there a complete sample or a code to take a picture? What's the
official way for doing that?

Currently i use this code that worked fine until Froyo appeared:

   private void captureCamera(String s)
   {
      targetPhotoName = s;
      Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
      intent.setType(s.endsWith(".3gp") ? "video/*" : "image/*");
      startActivityForResult(intent, TAKE_PHOTO);
   }

Does not work in Froyo at all.

TIA

    guich

-- 
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