public static Camera getCameraInstance(int i)
{
Camera camera;
try
{
camera = Camera.open(i);
}
catch(Exception exception)
{
exception.printStackTrace();
return null;
}
return camera;
}
Caller "mfilters.future.photo.editor" (PID 10272, UID 6426) cannot open camera "0" without camera permission'