我有以下代码:

sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED,

????????????????Uri.parse(“file://”Environment.getExternalStorageDirectory().getAbsolutePath())));

在我的清单中,我补充说:

我收到以下错误

07-20 13:16:31.203: WARN/BroadcastQueue(395): Permission Denial: broadcasting Intent { act=android.intent.action.MEDIA_MOUNTED dat=file:///storage/sdcard0 flg=0x10 } from com.example.Music_Exchanger (pid=11797, uid=10080) is not exported from uid 10016 due to receiver com.android.providers.downloads/com.android.providers.downloads.DownloadReceiver

我不知道为什么会否认.我怎么解决呢???

如果您知道,请帮助我,请写出更详细的信息.我只是个初学者.

非常感谢!

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐