Closed arpitweetech closed 1 year ago
Can you replicate the issue?
Here is my mobiles Download Directory and when I open the File manager of my Device it shows me all files like all pdf, txt, and all files but when I used this package and open this file manager example app in the list I got only images not all other files.
Is it possible you also send the code snippet?
I have tried to get files for Android 11 and 12 but because of scoped storage it doesn't even work, how did you go around it?
Hi @4-alok May I request you to please look into this issue if possible? I will also try to figure out what could be the reason
I am also facing the same issue. The folder contains images, video, and pdf although it doesn't list the pdf file for some reason.
I made it work by granting files access permission manually i.e from App settings.
If we want to request programmatically then display a dialog conveying why permission is required and upon permission granted, invoke the following code ...
val intent = Intent(Settings.ACTION_MANAGE_APP_ALL_FILES_ACCESS_PERMISSION) intent.addCategory("android.intent.category.DEFAULT") intent.data = Uri.parse("package:$packageName") startActivityForResult(intent, MANAGE_STORAGE_RC)
Edit: You need to put the above code in the Flutter method channel
and invoke it from the Flutter code
More about it : here
@hardikm9850 I would appreciate it if you could include this in the documentation of file_manager
Apologies for noticing your comment so late.
I see that you have already updated both the documentation and the example.
in Android 11 and 12 it gives only images and video files and all other types of format files not showing in list please resolve this issue as soon as possible Thanks!.