yanzhenjie / Album

:watermelon: Album and Gallery for Android platform.
https://github.com/yanzhenjie/Album
Apache License 2.0
2.51k stars 506 forks source link

Issue with Android 33 and above #343

Open STPLAmrut opened 1 year ago

STPLAmrut commented 1 year ago

Issue with Android 33 and above , It is not working. Provide proper solution.

hisetu commented 1 year ago

I made some changes for andorid 13 https://jitpack.io/#hisetu/Album/android_13-SNAPSHOT

geekwhatelse commented 1 year ago

If you're getting "No storage permission, please authorize before use.", you can following the steps below to resolve the issue.

  1. Go to com.yanzhenjie.album.mvp.BaseActivity -> requestPermission(String[] permissions, int code) Method.
  2. Check the permission for android 13+ if(Build.VERSION.SDK_INT > Build.VERSION_CODES.Q) { onPermissionGranted(code); return; }

For Android 11 and higher, we don't need to check the permission for WRITE_EXTERNAL_STORAGE. But, in our case it's checking the permission, which will always returns false. As a result we are getting the error.

Instead, step 2 makes sure permission is not denied.

Hope this helps :)

hassanrana commented 1 year ago

@geekwhatelse doesnt work in my case

aivision369 commented 1 year ago

@hisetu I am also not able to view all images once open Album. When I open at that time only that images which is taken by camera. Please let me know what you have update for Android 13.

I have also tried to implement @geekwhatelse kwhatelse explained but still not working. Kindly please do some help because I am trying to solve this issue last 2 days

hassanrana commented 11 months ago

@IDFDeveloper if you still isnt able to work this let me know.but first you have to convert library to native code