How to set up custom intent filter
<p>I'm trying to build an intent filter for a custom intent</p>

<pre><code>registerReceiver(new CustomReceiver(), new IntentFilter("CUSTOM_INTENT"));
</code></pre>

<p>Here is <code>CustomReceiver</code>class</p>

<pre><code>public class CustomReceiver extends BroadcastReceiver {

    @Override
    public void onReceive(Context context, Intent intent) {
        //Do something
    }
}
</code></pre>

<p>When I test the receiver </p>

<pre><code>adb -s 24da2d85 shell am broadcast -a CUSTOM_INTENT
</code></pre>

<p>I get no response</p>

<pre><code>Broadcast completed: result=0   
</code></pre>