Android SMS_RECEIVED broadcastreceiver not getting called
<p>The onreceived function in my bradcastreceiver is not being triggered.</p>

<p>I tested this by sending a sms message from different phones, but the log does not seem to show any Activity.</p>

<p>here is the receiver class</p>

<pre><code>package nz.co.smstopc;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class SmsListener extends BroadcastReceiver{

    @Override
    public void onReceive(Context context, Intent intent) {
        //---get the SMS message passed in---
        Log.d("SmsListener", "new sms!!");
    }
}
</code></pre>

<p>And here is the minifest.xml</p>

<pre><code> &lt;receiver android:name=".smstopc.SmsListener"&gt; 
        &lt;intent-filter&gt;                                         
            &lt;action android:name="android.provider.Telephony.SMS_RECEIVED" /&gt; 
        &lt;/intent-filter&gt; 
    &lt;/receiver&gt;
</code></pre>

<p>This is the permission i have used. </p>

<pre><code> &lt;uses-permission android:name="android.permission.RECEIVE_SMS"/&gt;
</code></pre>

<p>I have tried everything to solve this problem. 
Did i miss something to add in minifest? </p>
