You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My kotlin code
`binding.fab.setOnClickListener { view ->
val options = Options().apply{
ratio = Ratio.RATIO_AUTO //Image/video capture ratio
count = 15 //Number of images to restrict selection count
spanCount = 4 //Number for columns in grid
path = "Pix/Camera" //Custom Path For media Storage
isFrontFacing = false
mode = Mode.All //Option to select only pictures or videos or both
flash = Flash.Auto //Option to select flash type
preSelectedUrls = ArrayList<Uri>() //Pre selected Image Urls
}
addPixToActivity(R.id.container, options) { it ->
when (it.status) {
PixEventCallback.Status.SUCCESS -> //use results as it.data
{
val returnValue = it.data
Log.e("", "onActivityResult: ${returnValue.size}")
}
PixEventCallback.Status.BACK_PRESSED -> // back pressed called
{}
}
}
}`
This is happening because in Android 13 and above android.permission.READ_EXTERNAL_STORAGE is replaced with android.permission.READ_MEDIA_IMAGES/VIDEOS.
But this repo has not updated "PermissionHelper" Class.
Describe the bug
i gave the all permission but still showed permission denied dialog.
My Manifest permission
<uses-permission android:name="android.permission.CAMERA" /> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.READ_MEDIA_IMAGES" /> <uses-permission android:name="android.permission.READ_MEDIA_VIDEO" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:maxSdkVersion="28" /> <uses-permission android:name="android.permission.ACCESS_MEDIA_LOCATION" />
My kotlin code
`binding.fab.setOnClickListener { view ->
gradle file
`dependencies {
}`
Screenshots
Please find the screenshot
Device information
The text was updated successfully, but these errors were encountered: