Skip to content

Pandiyanmk/Camera-Storage

Repository files navigation

Android Kotlin sample app for taking a camera picture using the IMAGE_CAPTURE action

Overview

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.

Highlights:

  • Request camera permission
  • Handle different permission allow and deny responses
  • Set up ACTION_IMAGE_CAPTURE intent
  • Handle take picture result in onActivityForResult

Getting Started

  1. 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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages