Dhaval2404 / ImagePicker

📸Image Picker for Android, Pick an image from Gallery or Capture a new image with Camera
Apache License 2.0
1.53k stars 341 forks source link

Imagepicker with Camera is not working on kotline in version2.1(version1.8 works well) #265

Open MinJerry1129 opened 2 years ago

MinJerry1129 commented 2 years ago

Summary

When run the app, Camera not work. I got issue message: Permission denied

Android version

I'm building on android 29, 30 minSDK:21 mtargetSdk:29,30

Impacted devices

Honor 9 Lit

nirmal700 commented 2 years ago

Add the permission for camera in the manifest file and if min api >= 26 ask the user permission runtime too if not enabled it will ask for permission in the run time