關於OpenFlashLight
簡約主義燈一個按鈕。開源。
Open Source Flash Light one button, stable and fast. (no ads of course).
https://github.com/tinmarino/OpenFlashLight
The important features are in AndroidManifest.xml :
And On :
cam = Camera.open();
Parameters p = cam.getParameters();
p.setFlashMode(Parameters.FLASH_MODE_TORCH);
cam.setParameters(p);
cam.startPreview();
Off :
cam.stopPreview();
cam.release();
cam = null;
Test if LED flash present in Android SmartPhone :
if (getPackageManager().hasSystemFeature(
PackageManager.FEATURE_CAMERA_FLASH))
Hope that helps.
最新版本1.0的更新日誌
Last updated on 2016年09月11日
Minor bug fixes and improvements. Install or update to the newest version to check it out!
OpenFlashLight歷史版本
27.2 KB2016年09月11日

