title: Android broadcastreceiver seems to have stopped working
body: <p>I am currently working on an app that uses a <code>broadcastreceiver</code> to check for incoming text messages, but all of the sudden it seems to have stopped working, I even wrote a small test application that, to me at least, seems syntactically correct, but also is not functioning.</p>
  
  <p>Here is the code from the test project:</p>
  
  <p>The manifest:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
        package="com.AGApplications.test"
        android:versionCode="1"
        android:versionName="1.0"&gt;
      &lt;application android:icon="@drawable/icon" android:label="@string/app_name"&gt;
          &lt;activity android:name=".test"
                    android:label="@string/app_name"&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
                  &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
  
          &lt;receiver android:name=".MsgMon"&gt; 
              &lt;intent-filter&gt; 
                  &lt;action android:name=
                      "android.provider.Telephony.SMS_RECEIVED" /&gt; 
              &lt;/intent-filter&gt; 
          &lt;/receiver&gt;
  
      &lt;/application&gt;
  
      &lt;uses-permission android:name="android.permission.RECEIVE_SMS"&gt;
      &lt;/uses-permission&gt;
  
      &lt;uses-sdk android:minSdkVersion="8" /&gt;
  &lt;/manifest&gt; 
  </code></pre>
  
  <p>The BroadcastReceiver:</p>
  
  <pre><code>package com.AGApplications.test;
  
  import android.content.BroadcastReceiver;
  import android.content.Context;
  import android.content.Intent;
  import android.util.Log;
  
  public class MsgMon extends BroadcastReceiver{
  
     @Override
     //Called when new message is received
     public void onReceive(Context context, Intent intent) {
        Log.d("PHONE", "Message Received");
     }
  }
  </code></pre>
  
  <p>And the main activity:</p>
  
  <pre><code>package com.AGApplications.test;
  
  import android.app.Activity;
  import android.os.Bundle;
  
  public class test extends Activity {
      /** Called when the activity is first created. */
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
      }
  }
  </code></pre>
  
  <p>As far as I can tell I'm not doing anything wrong, but obviously I am!</p>