M S
M S

Reputation: 4093

Android: How to capture image without showing preview

I am using the following code to capture the image in Android

Intent cameraIntent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE); startActivityForResult(cameraIntent, 100);

After capturing an image, its showing a preview and asking whether to save or discard the image.

Is there anyway where i can avoid this preview?

The Camera app in Android dosent shows the preview. So there should be a way i guess.

Thanks in advance.

Upvotes: 4

Views: 4400

Answers (1)

M S
M S

Reputation: 4093

The camera app doesn't give other apps the option to disable the confirmation screen, even though the camera app itself doesn't show the confirmation screen.

Therefore it is not possible for not showing the confirmation screen.

However we can achieve this by writing a custom app using the Camera library in android. (see this and this)

Upvotes: 2

Related Questions