Charon
Charon

Reputation: 58

How to take multiple pictures using Android android.provider.MediaStore.ACTION_IMAGE_CAPTURE?

I have the following 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?

Upvotes: 3

Views: 2090

Answers (1)

TotoroTotoro
TotoroTotoro

Reputation: 17622

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.

Upvotes: 3

Related Questions