使用相机和存储拍摄的结果在SD卡中的android [英] Using Camera and storing captured result in SDCard in android

查看:73
本文介绍了使用相机和存储拍摄的结果在SD卡中的android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要的应用程序中,我想用相机拍摄图像后,我要存储在SD卡的图像,并显示在屏幕上的形象了。

I want to make application in which i want to use camera as after the image is captured, i want to store that image in SDCard and display that image in Screen too.

谁能帮我...

感谢

推荐答案

使用 ACTION_IM​​AGE_CAPTURE 的意图发动摄像头活动:

Use ACTION_IMAGE_CAPTURE intent to launch Camera Activity:

Intent intent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE );
startActivityForResult( intent, 0 );

有一个详细的例子在这里: HTTP://labs.makemachine .NET / 2010/03 /简单Android的照片捕捉/ ,我认为适合您的问题,捕捉到的图像,将其存储在SD卡,然后在ImageView的显示图像了。

Have a detailed example here: http://labs.makemachine.net/2010/03/simple-android-photo-capture/ , which i think suitable to your problem as to capture image , store it in sd-card and then display image in imageview too.

享受!

这篇关于使用相机和存储拍摄的结果在SD卡中的android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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