-
Notifications
You must be signed in to change notification settings - Fork 561
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
Android11 #305
Comments
Limitation of Android filepicker has only to do with filepicker part of feature. Images and video picker will work as it is working currently. It will not work when your targetsdkversion will become 30 (Android 11). It will work as long as your target sdk is 29 and you have added set the value of Google has put restrictions on Android 11 as you need to opt for scoped storage now i.e. you can only access data to your app specific directory or query for media such as images and videos only. More info here: Only way to use default intent picker in the OS itself (https://developer.android.com/training/data-storage/shared/documents-files) I have still not decided what to do with filepicker, when we have to update targetsdk to 30. |
I am developing a sample app using a good library. In ver 2.2.4, it worked successfully in SDK29. |
Hello, |
Hi, |
Check storage Permissions, In Android 11 storage permission changed add MANAGE_EXTERNAL_STORAGE permission in Manifest in code check permission of manage storage it will work |
Google will only accept your app if it falls in File Management category otherwise MANAGE_EXTERNAL_STORAGE is of no use. |
I found solution for this problem:
Step 2: modify droidninja.filepicker.FilePickerBuilder.java replace two functions
Step 3: run your application |
@vsoft-phuong |
@vsoft-phuong where is getInstance Can you help me in this plz ?? |
Please see java class below
…On Fri, Apr 16, 2021 at 8:02 PM gurjeet734 ***@***.***> wrote:
@vsoft-phuong <https://github.com/vsoft-phuong>
PickerManager.getInstance()
.setProviderAuthorities(fragment.getContext().getApplicationContext().getPackageName()
+ ".droidninja.filepicker.provider");
where is getInstance
where to add setProviderAuthorities method
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#305 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAIYDFDRDF6RI5XFQGJ2DF3TJAYO5ANCNFSM4TUH7D2A>
.
|
PickerManager.java `package droidninja.filepicker; import java.util.ArrayList; import droidninja.filepicker.models.BaseFile; /**
|
hi all, I got the same issue on mine. I downloaded source code version 2.2.5 & run on Android 11, pickup photo, image, video, file worked fine, but take photo didn't. It showed "No Application exists for camera!". |
please help me this issue #324 |
Hello, If we enable this permission (PACKAGE_NAME MANAGE_EXTERNAL_STORAGE) then app gets rejected on play store so is there any solution for this? Thanks! |
Yes, I download the source code & update very simple in that and it works well. Then build lib to .arr file |
but This possible for only media files but what about non media files like pdfs and text what i should do to access the non media files from internal storage |
You need to use MANAGE_EXTERNAL_STORAGE permission for version 11 or later. Add in Manifest: Please follow below code: private String[] permissions = new String[]{Manifest.permission.CAMERA, Manifest.permission.READ_EXTERNAL_STORAGE, Manifest.permission.WRITE_EXTERNAL_STORAGE}; //region FOR CHECK PERMISSION
|
Hi, I want access of non media files only in Android Version 11 like pdf , doc, txt etc. Is there any solution found for this without using Can anyone help me out with this? |
+1 |
In Android 13, we might be getting much better looking photo picker with material UI soon. |
Check my repository, that may solve your issues |
Storage access framework |
Hi, so in Android 11 and above this library won't work? And what do we have to use to make it work? Or do you have any recommendation (library or something) to use also in Android 11?
The text was updated successfully, but these errors were encountered: