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