The Android framework supports capturing images and video through the android.hardware.camera2 API or camera Intent. Use this tags for questions about accessing camera of getting a camera preview or accessing specific features like recording, auto-focus, time lapse etc.
Questions tagged [camera-api]
54 questions
0
votes
2 answers
How to crop part of image file in android?
I wrote a camera app using the camera API2.
I can take a picture from the specific things. Then I know that there is important information in a specific location in my picture( I do not need to select the important area, I already know which part…

MKH
- 153
- 1
- 3
- 15
0
votes
0 answers
nexus 5x camera api2 take picture many times
I was looking at the two examples in order to take advantage of the camera.
Camera2Basic viewing a sample test device put on my nexus 5x I think there is a problem I added a line in the example ImageSaver class.
@Override
…

user3833569
- 31
- 1
- 2
0
votes
1 answer
Close camera application from my application after 2 minutes android
I am developing an android application which requires use of android camera api. I am successfully able to caputre the image and save it.
Now I want the camera application to close in about 2 minutes if the user is not clicking any image, saving or…

Ravi Rawal
- 233
- 3
- 14
0
votes
2 answers
API usage dilemma for my new Android App
I am planning to develop a new Android app with a camera use case in it. Reading the API documentation it seems like Android's 'Camera.hardware' class has been deprecated and new 'android.hardware.camera2' has been introduced. So my question is…

user2453055
- 975
- 1
- 9
- 19
0
votes
1 answer
Locking iOS Camera Exposure Crashes
I have the following code:
-(void) startCameraCapture {
// start capturing frames
// Create the AVCapture Session
session = [[AVCaptureSession alloc] init];
// create a preview layer to show the output from the camera
…

Timothy Frisch
- 2,995
- 2
- 30
- 64
-1
votes
1 answer
Picture is not showing up in my activity after I take a photo
On Android 10 and below, when I take a picture using the code below, everything is fine except for Android 11 and above.
private fun openCameraApp() {
val photoURI: Uri = FileProvider.getUriForFile(
this,
…

Wangu Ngalati
- 17
- 3
-1
votes
1 answer
Using the camera HTML API
I have a codepen where I am trying to do something like Revoluts KYC doc upload verification interface.
I struggle with 2 issues.
First, I want the the application to require the image being taken within a certain area in the center of the canvas.…

ptts
- 1,022
- 8
- 18
-1
votes
1 answer
How to get access to list of files from /storage/emulated/0
I'm writing an Android application, which can capture and watch photos. All captured images appear in grid RecyclerView (CameraActivity), where I made all elements are clickable. To store images I'm using internal memory within…

Ismail
- 3
- 1
- 2
-2
votes
1 answer
How to implement Camera Based app in android using google camera(GCAM)?
I want to to develop a android app using GCAM(Google camera) to capture the images.Is GCAM is open source available?

Praveen Kumar
- 1,576
- 8
- 31
- 47