TeamAmaze / AmazeFileManager

Material design file manager for Android
https://teamamaze.xyz
GNU General Public License v3.0
5.36k stars 1.58k forks source link

Cant open OPEN_DOCUMENT_TREE intent when triggering SAF #2417

Closed amaze-issue-automation[bot] closed 2 years ago

amaze-issue-automation[bot] commented 3 years ago

Issue explanation (write below this line)

Not sure why this keeps happening all access permissions have been granted, it really began with cloud plugin but without it app doesnt function.

Exception

android.content.ActivityNotFoundException: No Activity found to handle
Intent { act=android.intent.action.OPEN_DOCUMENT_TREE }
at
android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1809)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1523)
at android.app.Activity.startActivityForResult(Activity.java:4228)
at
androidx.fragment.app.FragmentActivity.startActivityForResult(FragmentActivity.java:676)
at android.app.Activity.startActivityForResult(Activity.java:4186)
at
androidx.fragment.app.FragmentActivity.startActivityForResult(FragmentActivity.java:663)
at
com.amaze.filemanager.utils.MainActivityHelper.triggerStorageAccessFramework(MainActivityHelper.java:301)
at
com.amaze.filemanager.utils.MainActivityHelper.lambda$guideDialogForLEXA$4(MainActivityHelper.java:291)
at
com.amaze.filemanager.utils.MainActivityHelper.lambda$guideDialogForLEXA$4$MainActivityHelper(MainActivityHelper.java)
at
com.amaze.filemanager.utils.-$$Lambda$MainActivityHelper$UwhrA_yD3ZmiyefJq6Wf47pqvKg.onClick(lambda)
at
com.afollestad.materialdialogs.MaterialDialog.onClick(MaterialDialog.java:410)
at android.view.View.performClick(View.java:5637)
at android.view.View$PerformClick.run(View.java:22429)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6125)
at java.lang.reflect.Method.invoke(Native Method)
at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:892)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:782)


TranceLove commented 3 years ago

As said, there is app to handle the OPEN_DOCUMENT_TREE intent, which is usually handled by Android's own DocumentsUI.

I suspect you are using custom ROM without DocumentsUI app?

EmmanuelMess commented 3 years ago

As said, there is app to handle the OPEN_DOCUMENT_TREE intent, which is usually handled by Android's own DocumentsUI.

I suspect you are using custom ROM without DocumentsUI app?

Yes, I don't think we can assume that any apps are actually installed.

VishalNehra commented 2 years ago

@VishnuSanal will you be able to rebase this please?

VishnuSanal commented 2 years ago

@VishnuSanal will you be able to rebase this please?

done