android-camera Questions

10

I currently have the Droid cam Application installed on my android, it is being detected and is streaming on Skype through wifi (Droid Cam client). It is however not streaming to OpenCV, no matter ...
Tibbetts asked 19/3, 2016 at 13:36

11

I have an Android application which contains multiple activities. In one of them I'm using a button which will call the device camera: public void onClick(View view) { Intent photoIntent = new Int...
Mashhad asked 27/3, 2012 at 13:44

3

Solved

I am using the below code to get image uri from camera public static Uri getImageUri(Context inContext, Bitmap inImage) { ByteArrayOutputStream bytes = new ByteArrayOutputStream(); inImage.compr...

6

Solved

If I use only CAMERA_FACING_BACK or CAMERA_FACING_FRONT all works fine. I have trouble with switch from CAMERA_FACING_BACK to CAMERA_FACING_FRONT. My code snippet: public class PhotoCameraActivi...
Backwards asked 6/7, 2011 at 15:59

4

Solved

Device: Emulator pixel 3a - Android 11 Code: final List<Intent> cameraIntents = new ArrayList<Intent>(); final Intent captureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); fin...

7

Solved

I made an app that have a request for camera and GPS, but when I execute I am getting this warning several times with less than 1 second of each other. W/Activity: Can reqeust only one set of pe...

1

I'm working on face detection feature in my project. My code works perfectly on many devices including My device (Honor Play, Android 9.0) but it's not working on some devices ex. Xiaomi Redmi Note...
Wilmerwilmette asked 9/8, 2019 at 5:5

2

Solved

We connect to https://meet.jit.si for video conference. If we use a chrome browser on Android device (tested on both Android 7 and 10), we are able to join with both Camera and Mic enabled. Able to...
Attraction asked 27/5, 2020 at 7:40

15

Solved

In my app, I'd like to use the camera, if the device has one. Are there any devices running android that do not have a camera? By including the following into my manifest: <uses-feature android...
Gertie asked 22/12, 2009 at 4:9

0

I need to play a playback in my Flutter app while recording a video with audio. To prevent the playback from being heard on the recorded video, I want the user to use headphones. Unfortunately, som...
Comptometer asked 8/11, 2021 at 10:38

10

More generally, if a device has more than one embedded camera, is there a way to initialize one of them in particular? I didn't find it in Android reference documentation: https://developer.andr...
Heartstricken asked 6/5, 2010 at 6:41

5

There is not enough info about camera2 face detection mechanism. I used the Camera2 sample from Google: https://github.com/android/camera-samples I set face detection mode to FULL. mPreviewRequestB...

10

I am developing a feature with the possibility of switching the torch into ON/OFF states. Some days ago, we saw a new library from Google in io2019. I came up with an idea, why not use it. After s...

3

I'm running a Nexus 5, API 23, and opening the camera with: Intent captureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); However once this opens the camera appears upside down by default...

4

Solved

I would like to take a picture without any preview. I used this code but I'm getting an error: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentVi...
Pul asked 29/5, 2012 at 13:16

3

Solved

I have a mobile website that allows users to upload photos using the file input type (Browse button). If possible, I would like to launch the Camera App of an Android device on click of the Browse ...
Joellyn asked 6/10, 2011 at 14:45

4

Solved

Is there a way to rotate byte array without decoding it to Bitmap? Currently in jpeg PictureCallback I just write byte array directly to file. But pictures are rotated. I would like to rotate them...
Sung asked 20/5, 2013 at 14:34

5

Please help to understand what means: E/Camera: Error 2. My Camera-code does not work on android 6.0 only and the other works. This code is to scan a qr code. On the 6.0 preview is not included but...
Menedez asked 15/6, 2016 at 12:4

5

I have an application where I need to be able to let the user decide how to put a picture profile, (camera or gallery). I have only one variable of type "Uri" but I do not understand how ...
Hernardo asked 25/2, 2015 at 23:22

3

I'm consistently getting the error Not bound to a valid Camera when attempting to implement the imageCapture use case. I'm implementing the feature in Java following the camerax tutorial here. Th...
Penalize asked 17/11, 2020 at 6:35

4

Solved

I've used the ImageUtil class provided in https://mcmap.net/q/502768/-android-camera2-api-yuv_420_888-to-jpeg within my git repo: https://github.com/ahasbini/cameraview/tree/camera_preview_imp (not...
Ravel asked 17/5, 2017 at 10:18

8

I'm using an intent to open the camera with the native application: Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); Uri photoUri = Uri.fromFile(getOutputPhotoFile()); intent.putEx...
Waxwing asked 13/3, 2012 at 14:37

4

Solved

I'm investigating the new CameraX API, in relation to how viable it might be to switch over from our current Camera2 system. In our Camera2 system, we use an OpenGL surface to capture the frames fr...
Bottom asked 13/8, 2019 at 20:42

0

We want to automate the testing of an app, the main functionality involves image processing from a video stream coming from the camera. What is the best way to use Appium to inject a video stream a...

5

I'm following a tutorial on utilizing the camera in an Android app. I am getting the error "Permission Denial: can't use the camera" when running debug, both on emulator and physical device. I have...
Corbicula asked 4/10, 2015 at 3:37

© 2022 - 2024 — McMap. All rights reserved.