Questions tagged [android-image-capture]
58 questions
4
votes
0 answers
How to make copy of android.media.Image object?
I need to make a copy of "android.media.Image" object for a solution, but since the class is defined abstract we can not make instances of it ourselves.
I am getting my instance of this object from ((ImageReader)reader).acquireLatestImage();
Is…

Rohit
- 475
- 4
- 18
4
votes
3 answers
Windows photo viewer does not open bitmap compressed images from Android studio
I am using android custom camera to captured JPG images, But not able to preview them on windows photo viewer. Can anyone please advise. Images are visible using other applications like Ms Paint, Office, Windows 10 Photo application.

Vishal Pawar
- 51
- 4
3
votes
0 answers
Write a photo taken from camera using MediaStore.ACTION_IMAGE_CAPTURE to external storage on Android 11
I'm trying to take a photo using Intent(MediaStore.ACTION_IMAGE_CAPTURE) and save it to the external cache. Before starting the Activity I ask for CAMERA, READ_EXTERNAL_STORAGE, WRITE_EXTERNAL_STORAGE permissions.
The code example of the Intent…

Andrew
- 41
- 4
3
votes
1 answer
Android MediaStore Image Capture Preview Displaying in Wrong Orientation
When capturing a photo via the MediaStore.ACTION_IMAGE_CAPTURE intent, the preview displayed is in wrong orientation. This only happens on a few devices. Attached is the screenshot of how it looks. Photo was taken with the front cam on portrait. Our…

PenguinBlues
- 308
- 5
- 15
2
votes
4 answers
Open Default Camera App Without Using action.Image_Capture
I want the user to be able to quickly open the default camera app (or one they have set as default) in my app. However, I do not want to use android.media.action.IMAGE_CAPTURE, as this will only show the photo taking portion of the app. I just want…

pancodemakes
- 564
- 7
- 26
1
vote
1 answer
CapturePhotoAsync function on Xamarin Forms works well on emulator but rotates images on debugging with actual device
The Xamarin Essentials MediaPicker function to capture with camera using the CapturePhotoAsync runs correctly on the emulator but behaves differently when a mobile phone is connected to debug the program. I believe this is a bug and I would…

Victor
- 13
- 2
1
vote
2 answers
Android Image Capture action (aka ActivityResultContracts.TakePicture()) always returns landscape photos
I am trying to capture photos in my app using standard camera app intent (I am NOT interested in using JetpackX or other library to have a viewfinder in my app).
When I had the code in my Fragment like so:
// This is in response to user clicking a…

zaitsman
- 8,984
- 6
- 47
- 79
1
vote
0 answers
Taking photos and videos in app and sending the data between app components
This question is a bit on the broader side of things so I will not provide any specific code because it will be irrelevant.
I have an app that allows the user to take photos, and hopefully videos in the future. Currently it happens as follows:
The…

user3917631
- 119
- 1
- 9
1
vote
0 answers
Failure delivering result ResultInfo{who=null, request=65538, result=-1, data=null} to activity
This is my line code that I use to save pictures from camera and gallery on device:
Camera Intent:
private void abrirCamera() {
ContentValues values = new ContentValues();
image_uri =…

Cristian Gustavo
- 11
- 4
1
vote
0 answers
Capture CameraX preview frame to Bitmap
I am trying to have a workaround with Google's Camera API - CameraX, because older devices do not support multiple use cases (ImageCapture and VideoCapture).
So i want to take a picture capturing the preview frame and convert it to bitmap without…

areyouSEARious
- 117
- 1
- 13
1
vote
1 answer
Android Q: Intent(MediaStore.ACTION_IMAGE_CAPTURE) - No Activity found to handle Intent
I am trying to implement taking a photo from a camera on a project that targets Android Q.
From what I have found, I have implemented this:
val mediaFile = mediaManager.createImageFile() // creates a file to store the image and returns Uri
val…

Sermilion
- 1,920
- 3
- 35
- 54
1
vote
2 answers
Android image capture, how to get the lowest quality picture to take less space
I am using Android's default camera to capture my intent. The images that come out are of really good quality and I cannot seem to find a way to lower the quality of the images.
Is that even possible without implementing a custom Camera ?
Is it…

Richard
- 1,087
- 18
- 52
1
vote
0 answers
Multiple images/pictures in onActivityResult
I have 2 buttons:
on 1 button I can take pictures
on the other button I can select pictures from the gallery.
The problem is when I take a picture it is displaying it, but when I take a another picture it is replacing the current picture, but what…

Number70
- 453
- 1
- 4
- 16
1
vote
0 answers
Error while exiting the Camera2BasicFragment (Android custom camera using Camera2 API) to display captured image in next activity
I've used the sample code from Google to implement a custom camera using Camera2 API. I want to display the captured image in the next activity.
Camera2Basic sample code
However, I'm unable to safely exit the Camera2BasicFragment and start the next…

Vaishnavi Killekar
- 457
- 1
- 8
- 22
1
vote
1 answer
Android-Image-Cropper Permission READ/WRITE_EXTERNAL_STORAGE issue
I'm using the library Android-Image-Cropper (which is great!) and there's something I can't quite understand.
I'm using the library for profile picture add/update using camera of from local filesystem (i.e. gallery, file manager).
Although not…

Tomer Petel
- 334
- 3
- 11