由网友(秋落伊莫眠)分享简介:我想要的应用程序中,我想用相机拍摄图像后,我要存储在SD卡的图像,并显示在屏幕上的形象了。I want to make application in which i want to use camera as after the image is captured, i want to store that imag...
我想要的应用程序中,我想用相机拍摄图像后,我要存储在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_IMAGE_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.
享受!
相关推荐
最新文章