camera and gallery doesn't show
See original GitHub issueI have already implemented
implementation ‘com.github.dhaval2404:imagepicker-support:1.5’ implementation ‘com.github.florent37:inline-activity-result-kotlin:1.0.1’
on my gradle.
and this is my code
ImagePicker.with(this) .compress(600) .start { resultCode, dataIntent -> Log.e("image-picker", "picker start") if (resultCode == Activity.RESULT_OK){ val imageUri = dataIntent?.data imageView.setImageURI(imageUri) val imageFilePath = ImagePicker.getFilePath(dataIntent) Log.e("image-picker", "image path:$imageFilePath") }else if (resultCode == ImagePicker.RESULT_ERROR){ Log.e("image-picker", "image picker error") }else{ Log.e("image-picker", "task cancelled") } }
I try at the AppCompatActivity. Dialog for choose taking image from camera or gallery is showed. but when I choosed camera or gallery it doesn’t show anything. it doesn’t show camera or my gallery to take image.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (2 by maintainers)
Top GitHub Comments
I solved it it because I used permission to read and write storage on manifest. so I deleted it.
Not works in my case