Capture Photo with Camera in Kotlin – Android

This article shows a step by step guide to capture a photo with camera in Android using Kotlin. For this purpose, we need to initialize an Intent with MediaStore.ACTION_IMAGE_CAPTURE Action. Then open native Camera App using startActivityForResult(…), as shown in the following code. 1. Add Camera Permission Before starting, add the following CAMERA permission in your Manifest.xml file […]

Begin typing your search term above and press enter to search. Press ESC to cancel.