Hi BoD,
you need to add an URL to the "captue intent" where the image shall be
stored otherwise you only
get a preview from the intent.getData.
e.g.: intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(new File
("TempPicture")));
now you can retrieve the picture from the URL in the onActivityResult
Method in your Activity.
geetz
oEGONo
On 6 Mai, 18:48, BoD <[email protected]> wrote:
> Thanks a lot for your answer!
> Well I'm guessing this means I have to instruct the user to press the
> back button after they took the picture (to go back to my own
> activity), which is not ideal...
>
> It's too bad cause the ACTION_IMAGE_CAPTURE one is exactly what I want
> - except the result image is low res :(
>
> Thanks
>
> BoD
>
> On May 6, 6:17 pm, "[email protected]" <[email protected]> wrote:
>
> > Bod - as far as I know there is no intent just to snap a picture. What
> > you can do is call the camera intent to start the camera app itself
> > and use that to take your image then use the last URI it generated as
> > the source for whatever you want.
>
> > On May 6, 6:03 am, BoD <[email protected]> wrote:
>
> > > I'm really sorry to insist :) It's just that I didn't find a
> > > definitive answer anywhere so I was really hoping somebody from Google
> > > could quickly answer.
>
> > > Is there another intent to use or a parameter to the
> > > ACTION_IMAGE_CAPTURE one, to simply take a full-sized picture (should
> > > be 2048x1536 on the adp1)?
>
> > > I'd really like to know, because - correct me if I'm wrong - if the
> > > answer is that it's not currently possible, I'm gonna have to
> > > implement my own little 'Camera'-like app just to do that...
>
> > > Thanks a lot.
>
> > > BoD
>
> > > On May 5, 12:24 am, BoD <[email protected]> wrote:
>
> > > > Anyone?
>
> > > > Thanks for your help!
>
> > > > BoD
>
> > > > On May 4, 12:46 am, BoD <[email protected]> wrote:
>
> > > > > Hi!
>
> > > > > Following this old
> > > > > thread:http://groups.google.com/group/android-developers/browse_thread/threa...
>
> > > > > 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 is 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
-~----------~----~----~----~------~----~------~--~---