How I check the flash light available on device?also want to know how can I On/Off the flash light? I have put the code but not working right now? I search out this
You can use the following
context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_CAMERA_FLASH);
which will return true if a flash is available, false if not.
See http://developer.android.com/reference/android/content/pm/PackageManager.html for more information.