BroadcastReceiver + SMS_RECEIVED
<p>I'd like my app to catch incoming SMS messages. There are a few examples of this around. Looks like we just need to do this:</p>

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

// SMSReceiver.java
public class SMSReceiver extends BroadcastReceiver 
{ 
    @Override 
    public void onReceive(Context context, Intent intent) { 
        Log.i(TAG, "SMS received.");
        ....
    }
}
</code></pre>

<p>is this correct? I'm sending my phone some sms messages, but the log statement never gets printed. I do have some other SMS applications installed on the phone, which display a popup when the sms is received - are they somehow blocking the intent from getting passed down to my app, they are just consuming it completely?</p>

<p>Thanks</p>
