Questions tagged [android-camera]
The Android framework includes support for various cameras and camera features available on devices, allowing you to capture pictures and videos in your applications.
6,394
questions
0
votes
0
answers
8
views
Uri for onActivityResult is always null
I want to take a picture with the camera and then put it in the Firebase (Realtime Database) as a URI. Unfortunately, I always get a null value as Uri. How do I have to proceed so that this is not ...
0
votes
0
answers
22
views
Issue with CameraX output on some devices models
i am using camerax in my android application. when I capture photos in debug mode, everything is fine. but when i install the app from google play store, there is a very limited number of phone models ...
0
votes
0
answers
11
views
Camera image rotated 90 degrees when taken in landscape mode
I have recently upgraded to flutter 2.10.5 and the camera plugin to 0.9.5.
After this upgrade, taking a picture in landscape mode displays it 90 degrees rotated.
Any ideas if this is a common issue ...
0
votes
0
answers
12
views
Creating and populating HardwareBuffer for junit tests
I'm working with an Android 10 Java application that collects YUV_420_888 images from the camera, then calls
processImage(image.getHardwareBuffer())
where processImage is implemented in C and executed ...
0
votes
0
answers
13
views
React Native App Crash in Android 11 If Given One Time Permission To Access Camera
I have an app in react native for Android, when a user opens the camera it asks for Permission. In Android 11 user has two options in permission "ONLY THIS TIME" and "WHILE USING THE ...
0
votes
1
answer
28
views
launchCamera() in react-native-image-picker doesn't open anything when installed on a device
amazing developers. I am building an app that would offer opportunity to either take a photo on spot and upload it, or choose an image from gallery. I am using react-native-image-picker for it. So far,...
1
vote
1
answer
39
views
Save image to internal storage using ActivityResultContracts.GetContent(). - (Kotlin/Java/Android)
I'm new to file storage. My main goal is to take a picture with the camera, store it with good quality, then display it in an ImageView. I want to avoid asking for user permission (to use camera and ...
0
votes
1
answer
14
views
ARCore: Raw Depth Codelab is not working on my phone
I wanted to test this codelab from Google, but whenever I try to run the part3_completed file/application on my Huawei P30 ELE-L29 phone, I encounter the following errors (from logcat):
2022-05-13 12:...
0
votes
1
answer
43
views
Provided camera selector unable to resolve a camera for the given use case
I use camera in compose to take picture. Code for camera preview^
@Composable
fun CameraPreview(
modifier: Modifier = Modifier,
scaleType: PreviewView.ScaleType = PreviewView.ScaleType....
2
votes
0
answers
70
views
+50
Android force BarCode scanner to scan only BarCodes
I have an Android app, where it simply scans the Barcode and this is working fine.
The problem is, sometimes if I have my phone during scanning turned to carpet in my room, or even a PC keyboard, it ...
0
votes
0
answers
23
views
CameraX bindToLifecycle crashes when extension mode is ExtensionMode.BOKEH and ExtensionMode.FACE_RETOUCH
When bindToLifecycle is called quickly after eachother with ExtensionMode.BOKEH or ExtensionMode.FACE_RETOUCH enabled camera the app crashes.
Other extensions such as ExtensionMode.HDR, ExtensionMode....
0
votes
1
answer
38
views
I want to delete the captured image via wechat_camera_picker Flutter
For image_picker MainActivity destruction I wanted to use other plugin to pick image. And I found wechat_camera_picker as an alternative. But there was a problem while capturing the image. The ...
1
vote
0
answers
21
views
What are important difference between WebViews and browsers?
I had a little trouble finding updated information about WebViews, and as a back-end developer, I would like to understand how they work and differ from the actual WebKit browser engine?
For practical ...
0
votes
0
answers
31
views
Is anyone implemented layout camera feature like Instagram in Android?
I have already tried with single activity and multiple fragment which is added programmatically as per layout(2x2,2x3) same as instagram.
But when i load camera on first fragment its working fine but ...
0
votes
0
answers
26
views
Camera2 doesn't work well with lifecycle when using Android 6 (23 API) and Activity instead of Fragment
I use this sample https://github.com/android/camera-samples/blob/main/Camera2Video/app/src/main/java/com/example/android/camera2/video/fragments/CameraFragment.kt
But I changed Fragment to Activity, ...
2
votes
0
answers
23
views
Android: Get 64mp image from Xiaomi Mi 10T
I'm trying to get the largest picture from Xiaomi device. When requesting supported resolutions
CameraManager manager = (CameraManager) getContext().getSystemService(Context.CAMERA_SERVICE);
...
0
votes
0
answers
17
views
Exception: CameraException(CameraAccess, CAMERA_ERROR (3): waitUntilIdle:1851: Camera 0: Error waiting to drain: Connection timed out (-110))
I am trying to build a screen that will use camera package to get the image stream from the live feed.
my code: -
class CameraView extends StatefulWidget {
CameraView(
{Key? key,
...
0
votes
0
answers
21
views
Android camera - processing camera frame reduces fps of video recording
I am trying to get frames from the camera stream (by using OnImageAvailableListener) from time to time and do some processing(like object detection).
It works pretty well, but I have some unacceptable ...
0
votes
0
answers
39
views
Android calculate distance camera to object based on some values
I want to calculate distance from Android camera to object having:
benchmark real size (in cm)
benchmark size on screen (in px)
screen width and height (in px)
view angle
Please note that the ...
0
votes
0
answers
58
views
Unable to open camera in Android studio Emulator after Upgrading to Android 12
I am new to Android studio(Java) I was using Android 7 sdk 27 and every thing was working fine, but after upgrading to Android 12 sdk 31 version with the code there were some conditions to be added ...
2
votes
0
answers
33
views
How to exclude devices with legacy camera hardware level in manifest?
I need my app to be available only for devices which has the next camera hardware level:
CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED
CameraCharacteristics....
0
votes
0
answers
17
views
Using macro lens for video on Android
Is it possible to use the macro lens for capturing video?
I tried to get the available cameras in camera2 api(camera2Enumerator.getDeviceNames()) and got two options in my samsung galaxy f62 phone ...
0
votes
0
answers
43
views
How to take images from front and back camera simultaneously using cameraX time in android?
How to take image using front and back camera using cameraX at the same time
I capture single image from any one of the camera facing using following code
@Inject
lateinit var preview: Preview
...
0
votes
1
answer
104
views
Convert ImageProxy to Jpeg or Png
I just started with androidX camera, I'm using it's functionality imagecatpure.takePicture() , and I get ImageProxy as an object, so now my question is how can i convert this to jpeg/png/jpg so I can ...
0
votes
0
answers
25
views
Android - Activity recreate after open Camera App on Xiaomi
I'm facing a problem is my Activity has been recreated after open Camera app.
This is my flow:
Using the app
Press Home button to put app into background
Open Camera app default in device
Re-open my ...
0
votes
0
answers
93
views
Camera2 API - failed to take photo when TEMPLATE_RECORD is used for preview and video recording and video stabilization is enabled
Here's the official sample Camera2 API app to take photos.
It works fine for all devices and you can take photo by pressing the button without any issue.
But my own app is a little different. It also ...
1
vote
0
answers
27
views
Using the Object Capture API with the camera of the Android device
Can I take photos from an android device or any camera instead of an ipad or iphone while using the Object Capture API? What negative side effects can it have.
Note: I'm asking this question because I ...
2
votes
0
answers
58
views
Android/Java: <input type="file" accept="image/*;capture=camera"> doesn't work anymore in WebView
How can I open the camera from a webview directly in html to take a picture or pick up a gallery photo with android? It seems that the
<input type="file" accept="image/*;capture=...
0
votes
0
answers
27
views
Android photo taken with camera intent isn't showing up in gallery
I have created an Android sample app that should take a photo with the build-in camera app ("MediaStore.ACTION_IMAGE_CAPTURE") and make the photo accessible with the systems MediaGallery.
...
0
votes
0
answers
10
views
Is there a way to blacklist a camera lens of an Android device?
I wish to blacklist one of the camera lenses of my Android phone. It's running Android 12. I am looking for a way to block it, similarly to PC, where I can use modprobe to block my internal camera.
...
0
votes
1
answer
44
views
How to capture photo from recyclerView in Android - Kotlin language
I have simple task. In recyclerView when I click on any button I would like to start camera, take photo and then capture this photo. However I'm not able to find any solution for this. What I tried in ...
0
votes
0
answers
27
views
Android open up apps that use the camera permission?
I want to send the user away from my app to their camera app. The intention is that the user will be directed to open a camera app that allows for the scanning of QR codes.
What will work:
Attempt to ...
2
votes
2
answers
57
views
How do you detect if an Android device has a camera?
I want to disable camera functionality in my app, if the device does not have a camera. However, I seem to have stumbled into a bug when doing so.
According to the official Android Developer docs, I ...
0
votes
1
answer
109
views
Android CameraX QR Scanner only working in emulator, not on physical device
I am developing an app for a school project and it involves scanning QR Codes. I have gotten the QR Code scanning working perfectly using the CameraX library on the Android emulator, but when I export ...
-1
votes
3
answers
62
views
Why does my app keep crashing when launching the camera intent in a new activity?
I'm trying to launch the camera in a new activity but whenever I press the button to open the camera, my app keeps crashing. If I create a separate app to launch the camera and take a picture, it ...
0
votes
0
answers
25
views
Camera app features disabled with ACTION_IMAGE_CAPTURE
When using ACTION_IMAGE_CAPTURE with android Intent:
val intent = Intent(MediaStore.ACTION_IMAGE_CAPTURE)
intent.putExtra(MediaStore.EXTRA_OUTPUT, it.uri)
intentLauncher.launch(intent)
My ...
0
votes
0
answers
70
views
Android CameraKit Access denied finding property "vendor.debug.bq.dump"
I am using CameraKit (https://camerakit.io/docs#basicusage) in my application to launch the camera. Installed the code as it is indicated in the official documentation. When starting the camera, I get ...
0
votes
0
answers
30
views
How can I get the photo I just took with the camera back to then display it in my new activity?
I have a little problem... can you help me?
I'm trying to retrieve the photo I just took to display it in my new activity so that I can modify it (filters, new, GIF...).
btnTakePicture....
0
votes
0
answers
87
views
Dynamically adjust position of textview to always be at bottom of current camera preview
My layout is shown below. i want the textview to appear at the bottom of the camera preview. but this is not the case when the user changes the aspect the ratio of the preview, the textview remains in ...
0
votes
0
answers
23
views
continuous processes in background on android
I need to take pictures every 3 sec and upload them to server continuously in the background unless user opens the app and stops it.
In my current implementation I am using foreground service, in that ...
0
votes
0
answers
38
views
Store video sample in specific folder
I am trying to save video, created from custom application, to the specific folder inside DCIM folder, side by side to original camera folder.
private fun recordVideo() {
val intent = Intent(...
5
votes
3
answers
184
views
Android Studio - Unable to capture video from Camera
I am trying to capture video via Gallery or via Camera. I am able to successfully fetch the video from Gallery. However when I try to record the video from camera it loses the track and I am unable to ...
0
votes
0
answers
36
views
Android Camera reprocessing
I’m new with the android Camera Framework, can you help me with some questions?
It is possible to get the RAW image from the sensor, do some processing in my App (in the RAW image), pass this RAW ...
0
votes
2
answers
157
views
How to resolve No Activity found to handle Intent
I am getting an error when accessing camera the error is
android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.media.action.IMAGE_CAPTURE flg=0x3 clip={text/uri-...
0
votes
0
answers
104
views
Android 12 delete images file not working
For android 12 i cannot remove image file created by app. Method File.delete() is ignored, i don't get error but file still exist after it.
Image file is created by press "Add photo button", ...
0
votes
0
answers
108
views
How to record ANY of Android MLKIT detection to a video?
I'm building app that uses cameraX to display real-time filter on users body, but I am not aware of what would be best way to record/capture video with overlays on it. I've tried screencapturing, but ...
0
votes
0
answers
32
views
Flutter document_scanner issues with accessing camera
D/JavaCameraView( 6116): SUCCESS init openCV: 0
W/CameraBase( 6116): An error occurred while connecting to camera 0: Status(-8, EX_SERVICE_SPECIFIC): '10: connectHelper:1740: Failed to initialize ...
0
votes
0
answers
53
views
CameraX black preview on some devices if we set recorder video quality Quality.HIGHEST V(1.1.0-beta02)
I am using CameraX to capture photos and record videos. In video recorder usecase when I set recorder quality to Quality.HIGHEST preview screen turns black. Also I observerd exception from the library ...
0
votes
0
answers
45
views
Converting YUV_420_888 To Base64 Android corrupted image
I am currently working on a project which uses OpenCV in background mode to detect faces while the app is playing videos .
I've managed to run OpenCV as a service and I am using an ImageReader ...
2
votes
0
answers
87
views
Implement camera preview in native and use in flutter
I want to implement a native android camera preview (using c++) and display this preview on a flutter application.
I couldn't find any direct possible way to do so - up to this point the only solution ...