java.lang.SecurityException:
Permission Denial:
opening provider com.android.fileexplorer.provider.FileExplorerFileProvider
from ProcessRecord{ec2e8c7 14093:com.yuezhi.dingdong/u0a303}
(pid=14093, uid=10303) that is not exported from UID 10149
从文件夹分享文件到自己的app时报错如上,解决方法简单粗暴如下
Intent itnIn = getIntent();
Bundle extras = itnIn.getExtras();
String action = itnIn.getAction();
shareType = itnIn.getType();
//判断action事件
if (shareType == null || (!Intent.ACTION_VIEW.equals(action) && !Intent.ACTION_SEND.equals(action))) {
return;
}
Uri sendUri = itnIn.getData();
if (sendUri == null) {
sendUri = itnIn.getParcelableExtra(Intent.EXTRA_STREAM);
if (sendUri == null) {
showMessage("不支持当前格式");
return;