Answer the question
In order to leave comments, you need to log in
How to update camera code for target sdk 26?
Now the project uses targetSdk 22, there is a method for requesting a camera:
public static Camera getCameraInstance(int i)
{
Camera camera;
try
{
camera = Camera.open(i);
}
catch(Exception exception)
{
exception.printStackTrace();
return null;
}
return camera;
}
Answer the question
In order to leave comments, you need to log in
Caller "mfilters.future.photo.editor" (PID 10272, UID 6426) cannot open camera "0" without camera permission'
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question