I am trying to use the flash LED that is built into my android device. I found an existing question that was very helpful but I am seeing a strange compile error now. The problem is the part of my code where I check availability of flash.
boolean FlashAvails=Context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_CAMERA_FLASH);
There is a compile error that reads "Cannot make a static reference to a non-static method getPackageManager() from type Context".