[英]Android - How Capture image from camera or add from Library
I'm new to Android development. 我是Android开发的新手。
I have an application that allows the user to select images. 我有一个允许用户选择图像的应用程序。 I'm using an Button. 我正在使用一个按钮。 When the user clicks on the Button, I'd like to allow them the option to a)select the image from the gallery, or b)use the camera to capture an image. 当用户单击按钮时,我想允许他们选择以下选项:a)从图库中选择图像,或b)使用相机捕获图像。 Please help me by suggestion or any article. 请通过建议或任何文章帮助我。
thanx 谢谢
For getting images from gallery, you have to use different intent action defined in Media class. 为了从图库中获取图像,必须使用Media类中定义的不同的intent操作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.