Questions tagged [camera2]
142 questions
0
votes
2 answers
camera2 android camara callback camera device is null
So I'm using the camera2 api and when I open the camera:
private void StartUpCam()
{
CameraManager CM = (CameraManager) getSystemService(Context.CAMERA_SERVICE);
if(camId.compareTo("")!=0)
{
…

Jonathan Vukadinovic
- 264
- 5
- 18
0
votes
1 answer
Is it possible to use camera on < 21 and camera2 on 21+?
I would like to use camera2, because it have features that we want. But it's important to stay compatible with <21 API versions. So, I have CameraActivity and CameraController classes that using Camera. Is it possible to use android.hardware.Camera…

Ilya Ilin
- 2,283
- 21
- 27
0
votes
2 answers
Video broadcast with Android's Camera2 API
I'm trying to make an app which broadcast video through internet, currently I am using the deprecated Camera API, adding a Camera.PreviewCallback to the Camera object and then sending the byte array which comes in the onPreviewFrame() method from…

svprdga
- 2,171
- 1
- 28
- 51
0
votes
0 answers
Android Camera2 Manual Focus
Problem
I've recognized that the native 'LG' Camera2 App in the Lollipop API can manually focus nearer than any other app on the market. Not even 'Open Camera', which seems to use really all functions of the Camera2 API can focus that near.
I've…

Pixtar
- 301
- 6
- 9
-1
votes
1 answer
Android Camera2 API show camera characteristics
I'm not used to C#/mobile programming/Xamarin, so please don't blame me for my dumb mistakes.
I'm trying to make a program which will show what my device's camera is capable of. Here's an example of the code:
TextView a = new TextView (this);
A =…

airbournenation
- 21
- 1
- 6
-1
votes
1 answer
Android - Camera2 : The easiest way to turn on the torch light
The simplest way to turn on the torch light was :
Camera camera = Camera.open();
Camera.Parameters parameters =…

Greelings
- 4,964
- 7
- 34
- 70
-2
votes
1 answer
There is no callback like onAutoFocused() from api 21 and above
how to capture a photo automatically at focus in android using camera2 api ? There is no callback like onAutoFocused() from api 21 and above.

vish
- 1
- 2