Note that there are some explanatory texts on larger screens.

plurals
  1. POPermission Denial:broadcasting Intent is not exported
    text
    copied!<p>I have the following codes:</p> <p><code>sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED, Uri.parse("file://" + Environment.getExternalStorageDirectory().getAbsolutePath()))); </code> And in my manifest, I have added:</p> <pre><code> &lt;intent-filter&gt; &lt;action android:name="android.intent.action.MAIN"/&gt; &lt;category android:name="android.intent.category.LAUNCHER"/&gt; &lt;action android:name="android.intent.ACTION_MEDIA_MOUNTED"/&gt; &lt;action android:name="android.intent.action.MEDIA_EJECT" /&gt; &lt;action android:name="android.intent.ACTION_MEDIA_SCANNER_SCAN_FILE"/&gt; &lt;data android:scheme="file"/&gt; &lt;/intent-filter&gt; &lt;/activity&gt; &lt;/application&gt; &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt; &lt;uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/&gt; &lt;uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/&gt; </code></pre> <p>I receive the following error</p> <pre><code>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 </code></pre> <p>I don't know why it will be denial. And how can I solve it???</p> <p>If you know, please help me, and please write more detailed. I am just a beginner.</p> <p>Many thanks!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload