How to use camera flash/led as torch on a Samsung Galaxy Tab?

You aren’t doing anything wrong. In fact, you are doing everything correct. You are encountering a Device-Specific issue that is very prevalent in the Android world. I have found the following behavioral patterns for FLASH_MODE_TORCH: Works fine in all cases Works fine, but not with autofocus on Doesn’t work at all Frustratingly, getSupportedFlashModes() will return … Read more

Turn ON/OFF Camera LED/flash light in Samsung Galaxy Ace 2.2.1 & Galaxy Tab

I will soon released a new version of my app to support to galaxy ace. You can download here: https://play.google.com/store/apps/details?id=droid.pr.coolflashlightfree In order to solve your problem you should do this: this._camera = Camera.open(); this._camera.startPreview(); this._camera.autoFocus(new AutoFocusCallback() { public void onAutoFocus(boolean success, Camera camera) { } }); Parameters params = this._camera.getParameters(); params.setFlashMode(Parameters.FLASH_MODE_ON); this._camera.setParameters(params); params = this._camera.getParameters(); … Read more