This is an Android sample app written in Kotlin which shows how to request the camera permission and takes a picture using the IMAGE_CAPTURE action.
- Request camera permission
- Handle different permission allow and deny responses
- Set up ACTION_IMAGE_CAPTURE intent
- Handle take picture result in onActivityForResult
- Clone the project from GitHub
2. Build the project in Android Studio
3. Deploy on simulator or device.
## Versions used
* Android Studio 4.1.1
* Android API 29
## Sample App Usage
1. Press the 'Take picture' button to start the request permission flow.
2. Once the permission is granted, use the camera to take a picture
3. The image is displayed on the sample app page.