我對HTC Desire後置攝像頭的指示燈有些問題。當在HTC Desire上拍照時使用手電筒模式時,閃光燈過早熄滅
我正在開發一個應用程序,它使用torch mode拍攝照片,並且與其他設備(Nexus One,Galaxy S II,...)一起工作良好,但希望在照片拍攝前LED熄滅。我測試了其他相機應用程序("Camera Magic",「扭曲相機」),看起來他們有完全相同的問題。
相關的代碼是相當標準(它的工作對其他設備)
// set the torch mode in the Camera.Parameters
String flashMode = parameters.getFlashMode();
List<String> flashModes = parameters.getSupportedFlashModes();
if ((flashModes != null) && (flashModes.contains(Camera.Parameters.FLASH_MODE_TORCH))) {
parameters.setFlashMode(Camera.Parameters.FLASH_MODE_TORCH);
}
...
...
// then just start the camera preview
mCamera.startPreview();
如果有人知道這個問題可能是什麼或經歷了同樣的我想知道?