Intro Mobile App Dev (Android Studio) : Write a simple app thatflashes the device’s flashlight. Flashing using the AndroidFlashlight Get a CameraManager Camera Manager get the camera IDlist to get the camera’s name for the setTorchMode() call. CameraManager setTorchMode() – handles calls to turn on and off theflashlight.
Use toggle button to switch on and off flashlight.
Hint: Give user permission to use flashlight within manifests.<uses-permissionandroid:name=”android.permission.FLASHLIGHT”/>
Expert Answer
An answer will be send to you shortly. . . . .