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.

Filter by
Sorted by
Tagged with
0votes
0answers
6views

HTTP stream as an virtual webcam for Zoom, Skype?

I am using IP Webcam on my android and can't understand most of its features. So far I am only able to get video stream of camera on http//address on my windows desktop. But it does not appear as a ...
user avatar
0votes
1answer
20views

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 ...
user avatar
0votes
0answers
18views

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 ...
user avatar
2votes
2answers
34views

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 ...
user avatar
0votes
0answers
11views

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 ...
user avatar
-1votes
3answers
43views

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 ...
user avatar
0votes
0answers
13views

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 ...
user avatar
  • 3,482
-1votes
0answers
18views

MLKIT Controling Pose Detection from Preview

I'm using basic MLKIT pose detection starter samples and I'm having issue, I want to show camera preview for user, but delay ImageAnalysis for specific time (let's say 10 sec). Because if I don't, ...
user avatar
0votes
0answers
15views

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 ...
user avatar
0votes
0answers
7views

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....
user avatar
0votes
0answers
28views

Detect picture capture AND save

I want to: Detect when the picture has been captured. AND detect when the picture has been saved. My best attempt is through this (pseudo) code but it is incorrect. What is the correct way to ...
user avatar
  • 39
0votes
0answers
12views

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 ...
user avatar
0votes
0answers
28views

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(...
user avatar
4votes
3answers
110views
+50

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 ...
user avatar
0votes
0answers
24views

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 ...
user avatar
0votes
2answers
57views

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-...
user avatar
  • 3,048
0votes
0answers
39views

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", ...
user avatar
0votes
0answers
54views

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 ...
user avatar
0votes
0answers
11views

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 ...
user avatar
0votes
0answers
21views

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 ...
user avatar
0votes
0answers
23views

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 ...
user avatar
2votes
0answers
35views

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 ...
user avatar
0votes
0answers
23views

Android AVD with 'emulated' camera shows no camera at all

I'm emulating Android with avdmanager and emulator, and I find that when I configure a camera as emulated, no camera control appears in the emulator. However, I do get a camera control when I set the ...
user avatar
  • 25.9k
0votes
0answers
12views

Use CameraXConfig with CameraController

I use the CameraController class to keep the code as simple as possible. (https://developer.android.com/reference/androidx/camera/view/CameraController). However, I have noticed that the PreviewView ...
user avatar
0votes
2answers
74views

How to increase image quality with android cameraX library?

I am creating an application which must implement its own camera. I use the cameraX library provided by google. I noticed that there is a difference between the quality of the image captured by my own ...
user avatar
  • 33
-2votes
0answers
14views

How to implement Camera overlay with map fragment and textview to display current location in Android Studio?

Research on it with button click the image of camera and map with current location shoud be displayed I want to capture the image like this
user avatar
0votes
0answers
17views

How do I enable front and back camera on Android Studio Virtual Device?

I'm using an AVD on Android Studio. The app I'm using performs verification, first taking a photo with the back camera, and then switching to the front camera to take a selfie. But the problem I'm ...
user avatar
0votes
0answers
23views

Android Studio Camera Sideways – how do I fix orientation or at least prevent it from rotating?

I'm using the Android Studio Emulator Pixel 4 API 30, Android 11.0 with a built-in laptop webcam. I've tried initiating the webcam for the front and back camera (not at the same time). Whenever I ...
user avatar
0votes
1answer
32views

Error when saving relative layout as bitmap using layout.getDrawingCache() returning null

How to handle full-sized photo using MediaStore.EXTRA_OUTPUT? First, I need to put the picture AS FULL-SIZED NOT THUMBNAIL on a layout and put text below it like this: The idea I am using is that I ...
user avatar
0votes
2answers
21views

in foreground service, check if any other app is using camera?

I am using camera to take pictures in the foreground service, which can be used long term like 5 to 10 hours. The problem is when another app starts using camera while the foreground service is ...
user avatar
1vote
0answers
51views

ACTION_IMAGE_CAPTURE: How to whitelist a different camerapp in android-11 and later?

My android app uses ACTION_IMAGE_CAPTURE to ask an installed camera-app to take a photo for my app. If there are more than one camera apps installed android presents a camera chooser where the user ...
user avatar
  • 14.1k
0votes
0answers
26views

Modify java bytecode to block the user from taking a picture

I have an APK file and decompile it using APKtool and get all the source code as smali files, I want to modify the bytecode to show the user a message when he tries to open the camera and take a pic ...
user avatar
0votes
0answers
16views

Cannot capture image in the second time - Android

im using kevalpatel2106's android hidden camera library. E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.exampleapp, PID: 10608 java.lang.RuntimeException: takePicture failed ...
user avatar
  • 1
0votes
1answer
37views

How to capture image with different resolution using Multi camera android?

I'm trying to capture an image using Android Multi Camera API. The problem I'm facing now is that I can not get supported resolutions and prepare output configuration for a specific physical camera. ...
user avatar
0votes
0answers
37views

Permission problems accessing android camera

I'm very newbie in this Android world, and I'm trying to build an app to record video and GPS information. I'm facing some issues to access the camera. No errors, but it seems permission was not ...
user avatar
  • 11
0votes
0answers
40views

flutter error : Execution failed for task ':camera:compileDebugJavaWithJavac'

i am trying to use camera plugin in my flutter app but i am facing this probleme What went wrong: Execution failed for task ':camera:compileDebugJavaWithJavac'. Compilation failed; see the compiler ...
user avatar
0votes
1answer
51views

How to Save Image from ImageView To gallery

I am trying to save a taken image from the camera activity to the gallery so i made a function for it to do the same.Though the app is running but the image is not getting saved in the gallery.Can ...
user avatar
0votes
1answer
88views

How can I capture a new image using the camera and after that store it in the external storage?

I'm trying to capture a new image using the camera and after that store it in the external storage. I followed this tutorial Save the full-size photo and this Add the photo to a gallery but after ...
user avatar
  • 69
0votes
0answers
33views

CameraX keeps crashing when saving picture in service with attempt to involve null method

I have all a service that take a picture using Camerax independent of activity. I am trying to see if it is possible. And looks like the code keeps crashing at the saving output file part. I have ...
user avatar
0votes
0answers
28views

How can I save captured image via the camera in external storage?

provider_paths <?xml version="1.0" encoding="utf-8"?> <paths> <external-files-path name="my_images" path="Pictures" /> <...
user avatar
  • 27
0votes
1answer
18views

How Can I take pictures in a new Thread which is created in a service?

I am taking pictures in a background service, by creating a new thread. The issue is camera.takePicture is not executed. service starts, stops and iterates correctly just takePicture is not executed. ...
user avatar
0votes
0answers
27views

Replace a image with a rotated image in file location - android

when an image is captured on camera, I am using a ExifConverter to rotate the image correctly. I want to replace the file in the uri/path with the rotated image so this path can be sent to the ...
user avatar
  • 3,048
0votes
0answers
29views

What is the best way to add the captured image inside RecyclerView?

I am showing all images from the user device inside RecyclerView using MediaStore and I am passing List<GalleryModel> galleryModelList = new ArrayList<>(); to adapter via constructor. ...
user avatar
  • 45
0votes
2answers
28views

Flutter - app doesn't access the camera after building

I have created a simple note app using Hive, the app works perfectly on the emulator but after building the app with flutter build apk --release and installing it on my android device I face this ...
user avatar
0votes
0answers
27views

Pictures taken from Kivy Camera on Android are dark

I've seen this question asked and answered several times but can never translate the proposed solutions into python code. My Kivy App uses the Camera class to access the camera on an Android device ...
user avatar
  • 17
4votes
1answer
915views

CameraX is not configured properly. The most likely cause is you did not include a default implementation in your build such as 'camera-camera2

After updating from androidx.camera:camera-view:1.0.0-alpha32 to androidx.camera:camera-view:1.1.0-beta01 I receive the next error when using CameraX camerax_version = "1.0.2" // CameraX ...
user avatar
  • 4,895
0votes
0answers
10views

Can raspberry detect camera with Android OS?

I have Android OS on my Rpi. Purpose: I would like to use the cam ( which is connected to Rpi ) the same way as my phone uses the phone cam. The question is: Does the android OS identify the cam which ...
user avatar
  • 19
0votes
0answers
19views

is access to camera disabled by default for some phone model?

I need access to the video camera from js. And learnt that for samsung galaxy note 10 and huawei p20 android 9.1 - don't have access by default. I mean no popup that asks for permission is displayed. ...
user avatar
  • 119
0votes
0answers
12views

How to get parameters of v4l2 in android camera?

I want to use below properties using V4l2.How can i get & set this properties in android ?? For reference I am using below link but I don't understand how to set below parameters. ...
user avatar
0votes
1answer
37views

why a captured image bitmap from Android camera is rotated

I am using IMAGE_CAPTURE camera intent to capture and image and storing it in a file using MediaStore.EXTRA_OUTPUT. When I receive the image in onActivityResult, the bitmap is rotated. Any suggestions ...
user avatar
  • 3,048

15 30 50 per page
1
2 3 4 5
128