nt/BroadcastReceiver.html">BroadcastReceiver</a></code>
    and its <code><a href="../../reference/android/content/IntentFilter.html">IntentFilter</a></code>:
</p>
<pre>
        // Instantiates a new DownloadStateReceiver
        DownloadStateReceiver mDownloadStateReceiver =
                new DownloadStateReceiver();
        // Registers the DownloadStateReceiver and its intent filters
        LocalBroadcastManager.getInstance(this).registerReceiver(
                mDownloadStateReceiver,
              