Sms Listener doesnt respond
<p>I am doing the following code in order to listen for incoming SMS's
and it doesn't work, I never reach to the reciever class.</p>

<p><strong>I am Using i1 (Android 1.5)</strong></p>

<p>some code:</p>

<pre><code>  Manifest.xml:

 &lt;?xml version="1.0" encoding="utf-8"?&gt;
</code></pre>

<p>
    </p>

<pre><code>    &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;

    &lt;
    &lt;uses-permission android:name="android.permission.CAMERA" /&gt;
    &lt;uses-feature android:name="android.hardware.camera" /&gt;
    &lt;uses-feature android:name="android.hardware.camera.autofocus" /&gt;
    &lt;uses-permission android:name="android.permission.RECEIVE_SMS" /&gt;

&lt;/application&gt;
&lt;uses-sdk android:minSdkVersion="3" /&gt;

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

<p> </p>

<p>and this is the broadcaster class:</p>

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

@Override
public void onReceive(Context arg0, Intent arg1)
{

    Log.d("SmsReceiver", "I GOT THE SMS");

}
</code></pre>

<p>}</p>

<p>After I send sms to my phone, the line above never printed on the Logcat.</p>

<p>Any idea what am I doing wrong?</p>

<p>thanks,</p>

<p>ray.</p>
