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.FLASH_MODE_TORCH);
camera.setParameters(p);
camera.startPreview();
When my app is running, some devices cannot detect NFC tags. I noticed this happens with the Nexus 5X, specifically.
It appears certain devices can't detect NFC when the camera is running.
Can this problem be solved programmatically?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…