In Android, you can use
PackageManager
, hasSystemFeature()
method to check if a device has camera, gps or other features.
See full example of using
PackageManager
in an activity class.
Camera flashlight example
You may interest on this example – How to turn on/off camera LED/flashlight in Android.
You may interest on this example – How to turn on/off camera LED/flashlight in Android.
No hay comentarios:
Publicar un comentario