java - How do i make a validation about the missing flash camera on android? -
im making flash aplication school proyect phone doesn't have flashlight so.. have idea make validation if phone dont have flashlight light screen.
can me ? :d
i think post may halp implement idea:
if planing use inside function
onupdateoronenabledetc ofappwidgetprovider, functions havecontextinput parameter. can use context usingpackagemanagerdoing here.also in question mention
flashlight. check if needfeature_camera_flashorfeature_camera.context context = this; packagemanager packagemanager = context.getpackagemanager(); // if device support flash? if (packagemanager.hassystemfeature(packagemanager.feature_camera_flash)) { //yes log.i("camera", "this device has flash supported!"); }else{ //no log.i("camera", "this device has no flash support!"); }
check also:
- how check if device has flash light led android
- android: how check flash light available on device?
- [vuforia forum] check if flash light present in device
hope help
Comments
Post a Comment