如何使用Android android.provider.MediaStore.ACTION_IM​​AGE_CAPTURE采取多张照片? [英] How to take multiple pictures using Android android.provider.MediaStore.ACTION_IMAGE_CAPTURE?

查看:234
本文介绍了如何使用Android android.provider.MediaStore.ACTION_IM​​AGE_CAPTURE采取多张照片?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下的code。

Uri outputFileUri = Uri.fromFile( new File(path +"/image01.jpg") );
camera_intent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE );
camera_intent.putExtra( MediaStore.EXTRA_OUTPUT, outputFileUri );
startActivityForResult( camera_intent, 0 );

本启动相机,并保存在指定的路径中的图片。但我需要多张图片,并指定所有的人的名字,而不退出相机活动。

This launches the camera and saves the picture in the specified path. But I need to take more than one picture and specify the names of all of them, without exiting the camera activity.

我怎样才能做到这一点?

How can I do this?

推荐答案

我相信,相机活动处理一次一个图片。但你可以从的onActivityResult再次启动它(),直到你得到所需数量的图片中。

I believe that the camera activity handles one pic at a time. But you could start it again from onActivityResult() until you get the required number of pics.

这篇关于如何使用Android android.provider.MediaStore.ACTION_IM​​AGE_CAPTURE采取多张照片?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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