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

Allow Action not Working #32

Open
tolgatasci opened this issue Sep 20, 2023 · 3 comments
Open

Allow Action not Working #32

tolgatasci opened this issue Sep 20, 2023 · 3 comments

Comments

@tolgatasci
Copy link

Hello, everythink is working and other API version OK. But I have higgest api phone. It isn't working. I used other emulator api 27. Everythinks OK

My Phone Information

S23 ULTRA
Android Version : 13
compileSdk 33
minSdk 26
targetSdk 33 
@semihyilmaz
Copy link

Hello,
Did you solve the problem?

@tolgatasci
Copy link
Author

:( no

@tolgatasci
Copy link
Author

isPermissionGranted bu fonksiyonda Manifest.permission.READ_EXTERNAL_STORAGE istiyor ancak 30 üstünde bunun yerine Manifest.permission.READ_MEDIA_IMAGES bu izni alması gerekiyor.

PhotoPickerFragment dosyasında
private var grand_read_external = ""
override fun onCreate(savedInstanceState: Bundle?) {
...
grand_read_external = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU)
Manifest.permission.READ_MEDIA_IMAGES else Manifest.permission.READ_EXTERNAL_STORAGE

isPermissionGranted(grand_read_external)

bu fonksiyonu gördüğünde bu değişken ile değiştirdiğinde düzeliyor. Ben böyle çözdüm.

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

2 participants