SDK vừa tải về, thử vọc luôn
API thế này:
CameraManager.setTorchMode(String cameraId, boolean enabled);
public abstract class CameraManager.TorchCallback {
public void onTorchModeUnavailable(String cameraId);
public void onTorchModeChanged(String cameraId, boolean enabled);
}
Nguồn: http://laptrinh.io/browse/articles/bat-tat-den-flash-trong-android-m