I used to find the flashlight is available or not using this code
context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_CAMERA_FLASH);
but this code is support for sdk version >= 7 lower version is not supporting. so anybody help to find whether the flashlight is available in lower version
Thanks in advance
Android SDK has Camera class.. you can try getFlashMode method .. If method return null then flash is not support…
http://developer.android.com/reference/android/hardware/Camera.Parameters.html#getFlashMode()
I have not tried it,