file_manager icon indicating copy to clipboard operation
file_manager copied to clipboard

Android 12 zip,txt,pdf all type of document not showing.

Open arpitweetech opened this issue 3 years ago • 6 comments

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!.

arpitweetech avatar Aug 09 '22 12:08 arpitweetech

Can you replicate the issue?

JobaAdewumi avatar Aug 18 '22 07:08 JobaAdewumi

Screenshot_20220818-143330

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.

arpitweetech avatar Aug 18 '22 09:08 arpitweetech

Is it possible you also send the code snippet?

JobaAdewumi avatar Aug 18 '22 21:08 JobaAdewumi

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?

JobaAdewumi avatar Aug 18 '22 21:08 JobaAdewumi

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.

hardikm9850 avatar Nov 09 '22 13:11 hardikm9850

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 avatar Nov 10 '22 09:11 hardikm9850

@hardikm9850 I would appreciate it if you could include this in the documentation of file_manager

4-alok avatar Apr 03 '23 05:04 4-alok

Apologies for noticing your comment so late.

I see that you have already updated both the documentation and the example.

hardikm9850 avatar Jun 23 '23 07:06 hardikm9850