Album icon indicating copy to clipboard operation
Album copied to clipboard

Issue with Android 33 and above

Open STPLAmrut opened this issue 1 year ago • 5 comments

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

STPLAmrut avatar Jun 12 '23 09:06 STPLAmrut

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

hisetu avatar Jun 14 '23 02:06 hisetu

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 :)

geekwhatelse avatar Jun 16 '23 21:06 geekwhatelse

@geekwhatelse doesnt work in my case

hassanrana avatar Aug 06 '23 18:08 hassanrana

@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

aivision369 avatar Aug 09 '23 16:08 aivision369

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

hassanrana avatar Sep 06 '23 09:09 hassanrana