I use the NFC to read the content of the Ndef tags. So far no problems. At the same time I would like to use the flashlight with the CameraEx class but when the camera is initialized it is impossible to use the NFC and read Ndef tags. I have attached a sample code that reproduces my problem.
This is my Torch app: final Camera.Parameters p; Camera camera=Camera.open(); camera.setPreviewTexture(new SurfaceTexture(0)); p = camera.getParameters(); p.setFlashMode(Camera.Parameters.