android如何将捕获的图像保存到手机图库中 [英] android how to save captured image into phones gallery

查看:24
本文介绍了android如何将捕获的图像保存到手机图库中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个活动.在一项活动中,我有一个 ImageView 和一个相机按钮.当我按下相机按钮时,它会进入其他活动,其中有两个按钮 Capture,另一个是 Select 按钮.当我按下捕获它捕获图像.但问题是如何将此捕获的图像保存到图库.按下选择按钮后,捕获的图像应显示在第一个活动的 ImageView 上.我该怎么做.

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.

推荐答案

参见http://blog.kupriyanov.com/2010/02/solved-android-save-image-to-media.html 保存到图库,并查看 以编程方式从 Android 的内置图库应用程序中获取/选择图像 用于显示画廊图像.

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.

这篇关于android如何将捕获的图像保存到手机图库中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆