diff --git a/README.md b/README.md index beef6bc..70b2610 100644 --- a/README.md +++ b/README.md @@ -45,12 +45,6 @@ Status: - Android: DONE - iOS: DONE -Quirks: - -- __Android__: On Android API Level < 14, flash "on" may cause the flash to - alternate between on and off at about a half second/one second interval, - instead of making it stay on... - ## LICENSE [Apache 2.0](LICENSE.md) diff --git a/android/ZBarScannerActivity.java b/android/ZBarScannerActivity.java index 1490aeb..06b3d86 100644 --- a/android/ZBarScannerActivity.java +++ b/android/ZBarScannerActivity.java @@ -179,7 +179,7 @@ implements SurfaceHolder.Callback { Camera.Parameters camParams = camera.getParameters(); if(flashMode.equals("on")) { - camParams.setFlashMode(Camera.Parameters.FLASH_MODE_ON); + camParams.setFlashMode(Camera.Parameters.FLASH_MODE_TORCH); } else if(flashMode.equals("off")) { camParams.setFlashMode(Camera.Parameters.FLASH_MODE_OFF); } else {