title: Android: Download Manager
body: <p>I want to implement a solution where I want to catch the  <code>android.intent.action.DOWNLOAD_COMPLETED</code> intents from the Android Market App i.e after the download of the app. The android Market app uses the default Download Manager and the download manager on the completion of the download sends such an intent, however I have not been able to capture it,I followed <a href="http://blog.lytsing.org/archives/135.html" rel="nofollow">this tutorial</a> and please refer to <a href="http://www.netmite.com/android/mydroid/donut/packages/providers/DownloadProvider/docs/#ContentProvider_for_download_UI" rel="nofollow">this</a> to have more details on how market app uses Download Manager and for more information on Download Manager refer to <a href="http://developer.android.com/reference/android/app/DownloadManager.html" rel="nofollow">this</a>. Please do suggest me a way to catch those intents. </p>
  
  <p><strong>EDIT</strong>
  This is what I am using for my Broadcast Reciever</p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.ACCESS_DOWNLOAD_MANAGER"&gt;
  &lt;/uses-permission&gt;
  
  
  &lt;application android:icon="@drawable/icon" android:label="@string/app_name"&gt;
      &lt;receiver 
          android:name=".DownloadReceiver"
          android:permission="android.permission.SEND_DOWNLOAD_COMPLETED_INTENTS"
          android:exported="true"&gt;
  
           &lt;intent-filter&gt;
              &lt;action
                  android:name="android.intent.action.DOWNLOAD_COMPLETED"&gt;
              &lt;/action&gt;
           &lt;/intent-filter&gt;
       &lt;/receiver&gt;
    &lt;/application&gt;
  </code></pre>