using broad cast receiver along with activity
<p>i am working on a project with many activities but when trying to code a broad cast receiver within a class the broadcast receiver is not working though i have given permission to manifest file. with reciver.</p>

<pre><code>&lt;receiver android:name=".IncomingCallReciever" android:exported="true" android:enabled="true"&gt;
    &lt;intent-filter android:priority="1"&gt;actionandroid:name="android.intent.action.NEW_OUTGOING_CALL" /&gt;
        &lt;action android:name="android.intent.action.PHONE_STATE" /&gt;
        &lt;category android:name="android.intent.category.DEFAULT" /&gt; 
    &lt;/intent-filter&gt;
&lt;/receiver&gt;
</code></pre>
