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.
熱門國家 | 系統支援 | 版本 | 費用 | APP評分 | 上架日期 | 更新日期 |
---|---|---|---|---|---|---|
未知 | Android Google Play | 1.0 App下載 | 免費 | 1970-01-01 | 2015-04-20 |