Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Android 33 and above #343

Open
STPLAmrut opened this issue Jun 12, 2023 · 5 comments
Open

Issue with Android 33 and above #343

STPLAmrut opened this issue Jun 12, 2023 · 5 comments

Comments

@STPLAmrut
Copy link

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

@hisetu
Copy link

hisetu commented Jun 14, 2023

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

@geekwhatelse
Copy link

geekwhatelse commented Jun 16, 2023

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
Copy link

@geekwhatelse doesnt work in my case

@aivision369
Copy link

@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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants