No Activity found to handle Intent { act=android.intent.action.OPEN_DOCUMENT_TREE flg=0x1 }

198 views Asked by At
 Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT_TREE);
 startActivityForResult(intent, REQUEST_CODE_OPEN_DIRECTORY);
          

I am trying to open file directory in an android supported Interactive Flat panel name BENQ having android 11 . I try to open the file directory but this line of code gave me error

android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.OPEN_DOCUMENT_TREE flg=0x1 }

Does any one know how to fix this or any alternative?

"Some have suggested it might be very likely related to the fact that some users have disabled the FILES app on their devices, since MOST PROBABLY the error is not occurring on all the devices models listed above, but for a subset"

above is the solution suggested by some but i can not find how to activate the files app , i am not able to do anything.

also if some can please tell how can i read data from usb device in android without SAF in android 11 or above it will be of great help.

Note - My code working on almost all devices but this is the special case but it important for me to fix it.

0

There are 0 answers