Questions tagged [android-camerax]
If your issue is related to observed behavior, rather than API usage, please include information about the specific device (even if the device is an emulator).
android-camerax
868
questions
0
votes
0
answers
20
views
ML kit camera text recognition not working when navigated from another screen
I asked a previous question here where the camera preview screen with ocr wouldn't work when navigated from another screen and I managed to get it to work but now the problem is the ocr function doesn'...
0
votes
0
answers
20
views
Android CameraX Video Capture: ERROR_NO_VALID_DATA when starting recording
I'm trying to implement video recording in my Android app using CameraX. The app displays the camera preview correctly, but when I try to start recording, I get the following
error:Sending ...
0
votes
0
answers
20
views
CameraX preview page not working with navigation
So I have camera preview page that implements google mlkit's ocr option and it works if I run it as is but if I link it by navigation through a button the page opens up but the camera preview is not ...
2
votes
0
answers
47
views
Crash with CameraX and Compose Navigation on Android 11
I have a problem very similar to this.
I'm encountering a crash in my app when using CameraX with Compose Navigation. The issue occurs inconsistently: sometimes it crashes when opening the bottom ...
3
votes
0
answers
65
views
How to get camera preview on jetpack compose with library implementation("androidx.camera:camera-viewfinder-compose:1.0.0-alpha02")?
The alpha version of viewfinder has been released.
How can I use it to get a preview from the camera?
Viewfinder(
surfaceRequest = ,
implementationMode = ,
transformationInfo = ,
)
0
votes
0
answers
44
views
Android - How to display captured image from CameraX full size in ImageView?
I am using Kotlin CameraX, I have successfully implemented PreviewView with ratio 16:9
I successfully Captured Image using ImageCapture.takePicture(...)
imageCapture.takePicture(executor, object : ...
0
votes
0
answers
127
views
Application crashes in Android 14 devices in ServiceCompat.startForeground() function
I am trying to make an android application that keeps recording videos even when the user leaves the app ( foreground service) . I declared all the permissions as per the documentation in the Manifest ...
0
votes
0
answers
66
views
App stops when navigating to / from a composable displaying camera on Android 11
I have a bottom navigation app in the beginning stages. It has 5 navigation items, one of which displays the camera. When navigating between tabs, eventually the app stops either when landing on the ...
0
votes
3
answers
134
views
Text Recognition Overlay Misalignment Issue in Camera Preview
I'm working on an Android application where I'm implementing live text recognition using CameraX and ML Kit. The recognized text is displayed with bounding boxes on the camera preview, but I'm facing ...
0
votes
0
answers
44
views
Native module:React native, showing black screen when integrating camera
I am using react-native-cli version 0.74.0 and Andorid device for debugging linux os for writing code.
I am trying to make a Camera app using a native module.
You will ask if there is already a camera ...
0
votes
0
answers
643
views
NullPointerException: Cannot invoke "String.length()" because "<parameter1>" is null appear on build Android camerax v1.4.0-beta02
i update camerax version to v1.4.0-beta02, but i get the error java.lang.NullPointerException: Cannot invoke "String.length()" because "<parameter1>" is null when build. how ...
0
votes
0
answers
28
views
Camera crop working on Android 10. Not working on Android 11 or 12
Below is a very small gitHub project for image cropping from camera pic or gallery pic.
So, on the android java side it is using the 'edmodo' image cropper library-
com.theartofdev.edmodo.cropper
But ...
0
votes
0
answers
36
views
Android Super Resolution Camera Extension
I saw an article saying that a video stabilization extension will be added to Camera2 as part of Android 15. Is there any news on an extensions to enable super resolution photos that you can take with ...
0
votes
1
answer
33
views
Jetpack Compsoe Camerax imageCapture and crop 3 rectangles
I am trying to implement an app to take pictures, I don't want the full pic, I need to crop three pictures of the main pic (represented with rectangles), and save them for later processing. I am using ...
1
vote
0
answers
129
views
(Java) Upgrading androidx.lifecycle:lifecycle-viewmodel
When I try to upgrade androidx.lifecycle:lifecycle-viewmodel from 2.7.0 to 2.8.1 - error pops out:
Cannot resolve symbol 'AndroidViewModelFactory'
Question: Is there a way to get the same behaviour ...