解决 android.content.ActivityNotFoundException: No Activity found to handle Intent 问题

如下的报错:

android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW cat=[android.intent.category.DEFAULT] dat=content://***.fileProvider/files_root/Android/data/***/cache/ofddata/5bd4483f46db4ea58fe3e7a0cb387cf8.ofd typ=application/ofd flg=0x10000003 }

这个问题困扰了我几个小时,在这里记录下解决办法:

在AndroidManifest.xml中的acitivyt添加intent-filter