Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android how to save captured image into phones gallery

I have two activities. In one activity, I have an ImageView and an camera button. When I press camera button it goes to other activity where two buttons are there Capture and another is Select button. When I press capture it captures an image. But question is how to save this capture image to gallery. And after pressing the Select button the captured image should display on 1st activity's ImageView. How can I do that.

like image 207
Jyosna Avatar asked May 17 '11 07:05

Jyosna


People also ask

How do I save a picture to my gallery?

Touch and hold the image. Select a save option (e.g., Save attachment, Save to SD card, etc.). Unless otherwise specified, the image is saved to the default picture/video location (e.g., Gallery, Photos, etc.).


1 Answers

See http://blog.kupriyanov.com/2010/02/solved-android-save-image-to-media.html to save to gallery, and see Get/pick an image from Android's built-in Gallery app programmatically for displaying the gallery image.

like image 113
Femi Avatar answered Sep 18 '22 07:09

Femi