-
Notifications
You must be signed in to change notification settings - Fork 153
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
[BUG] Android 11 Crash #127
Comments
Same problem : ( |
Same Problem Kindly fix |
Same problem with android 11. Kindly update on this. |
+1. My app also crashes with the exact same exception on Android 11. It's possible that the bug is in Android 11, I feel it's a bit of a buggy release, but still, it would be nice to have a work around or something. Thanks. |
+1 |
Looks like someone has a potential fix: sfilmak@c43a6b5 |
Has anyone found an alternative for this library? I don't think the bug will be fixed in the near future. |
No need for an alternative. Someone else (sfilmak) fixed it. I forked his fork, tagged it and created a release for it. Since the original library uses jitpack, it's really easy to switch over to use your own fork of it. I just changed out: and replaced it with: The "a" at the end is my own tag, otherwise it would continue using the same version as the original. Now my app works in Android 11. As a bonus, it also uses newer versions of it's dependencies and targets API 30. |
Good idea @mveroukis implementation 'com.github.noelchew:storage-chooser:2.0.4.4a' |
I did manage to get the original code working with the external drive, a bit of a hack but its working ok for me. I did step back for API 28 as there wasn't much point going to 29 or 30 due to scoped storage and this version of the app isnt going on google play so the api version doesnt matter. If anyone is interested i can post the hack and maybe someone will improve upon it, it was a quick mod to the existing code. |
Updated Dependencies, Optimised and compressed Resources and New Publishing Plugin
|
FWIW I've also got a fork of this repo, with some additional fixes and changes
If anyone wants:
|
Hi. @mendhak , i use your 'com.github.mendhak:storage-chooser:2.0.4.4b' and it's work good for open 'ChooserDialogFragment'. code:
log: i try it on 'Android 11, Api30, Pixel 2(or3) ' in emulator and 'Android 11, Knox Api33, One UI3.1' in device Maybe I'm doing something wrong( |
Issue codekidX/storage-chooser/codekidX#127
@kollabz this looks Android 11 related as well. I've added a check for length so it should be better now. Do you want to try out the specific commit. If you say it's OK I could give it a tag.
|
@mendhak, i have no error with 'customFilter' or 'filter' in chooser builder, but i don't see any files in the selected directory. It's empy. ( i try it on 'Android 11, Api30, Pixel 2(or3) ' in emulator and 'Android 11, Knox Api33, One UI3.1' in device. |
@kollabz two things I can think of. First is obviously you'll want to make sure there are some files that match the filter, obviously. Second is you'll need to make sure your app has permissions, see here. One thing I noticed, despite permissions, I couldn't filter anything under Anyway I did a test I filtered to show just "csv" files and I was get this. You can see I copied your code minus the withActivity and withContent. I tried on Android 11 and 12. |
This library seems to crash on Android 11. Is it planned to fix this? I dont get this error on other Android Versions
The text was updated successfully, but these errors were encountered: