Hi!

Following this old thread:
http://groups.google.com/group/android-developers/browse_thread/thread/bbbf540685b2f76f/e4f2095421a698cd

and this issue:
http://code.google.com/p/android/issues/detail?id=1480

I tried the following piece of code to take a picture on 1.5:

    private void takePic2() {
        final Intent imageCaptureIntent = new Intent
(MediaStore.ACTION_IMAGE_CAPTURE);
        imageCaptureIntent.putExtra(MediaStore.EXTRA_OUTPUT,
Uri.fromFile(new File(Environment
                .getExternalStorageDirectory(), "test.jpg")));
        startActivityForResult(imageCaptureIntent, 1);
    }

It works but the resulting image is 512x384 (on the ADP1).

The doc says "If the EXTRA_OUTPUT is not present, then a small sized
image is returned as a Bitmap object in the extra field. If the
EXTRA_OUTPUT is present, then the full-sized image will be written to
the Uri value of EXTRA_OUTPUT."

But 512x384 looks 'rather small-sized' to me!

So what the correct way to get the full-sized version?

Thanks a lot for your help!

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