IntentFilter not working when created runtime
<p>I have a problem. I need to interupt link that are not static but the user will create list of all at runtime. So I am creating my intentfilter object at runtime. So when i use the code in manifest file it works.But using it in java class doesn't work for me. Here's the code </p>

<p>This is not working</p>

<pre><code>IntentFilter filter = new IntentFilter();
             filter.addAction(Intent.ACTION_VIEW);
             filter.addCategory(Intent.CATEGORY_DEFAULT);
             filter.addCategory(Intent.CATEGORY_BROWSABLE);
             filter.addDataAuthority("www.facebook.com", null);
             filter.addDataScheme("http");
RecieveBroadcaster  receiver = new RecieveBroadcaster();     
registerReceiver(receiver, filter);
</code></pre>

<p>But if setting statically it works in manifest</p>

<pre><code>        &lt;intent-filter&gt;
            &lt;action android:name="android.intent.action.VIEW"/&gt;
            &lt;category android:name="android.intent.category.DEFAULT"/&gt;
             &lt;category android:name="android.intent.category.BROWSABLE"/&gt;
            &lt;data android:scheme="http" android:host="twitter.com"/&gt;
             &lt;data android:scheme="http" android:host="facebook.com"/&gt;

        &lt;/intent-filter&gt;     
</code></pre>
