title: Android broadcast receiver not working
body: <p>I try to get a broadcast receiver working. Should be as simple as possible, I have my manifest like this:</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.mytest.intentRec" android:versionCode="1"
      android:versionName="1.0"&gt;
      &lt;application android:icon="@drawable/icon" android:label="@string/app_name"
          android:debuggable="true"&gt;
          &lt;activity android:name=".mainAct" 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="com.mytest.intentRec.MyIntentRec"
                    android:enabled="true" &gt;
          &lt;/receiver&gt;
      &lt;/application&gt;
      &lt;uses-sdk android:minSdkVersion="7" /&gt;
  &lt;/manifest&gt; 
  </code></pre>
  
  <p>As you can see I have a main activity mainAct, this does nothing but sending the broadcast once started:</p>
  
  <pre><code>public class mainAct extends Activity {
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
          this.sendBroadcast(new Intent());
      }
  }
  </code></pre>
  
  <p>and I have a class MyIntentRec, which is as simple as it could:</p>
  
  <pre><code>public class MyIntentRec extends BroadcastReceiver {
      @Override
      public void onReceive(Context context, Intent intent) {
          Log.v("IntentRec", "got it");
      }
  }
  </code></pre>
  
  <p>What I expect is that when I start my app that a broadcast is sent and being picked up and that a log entry is written. I don't see that log entry and I don't see any error. I'm suspecting to have either an error in the manifest or in sending the broadcast. I just created an empty intent there, does it need to be some intent with certain properties?</p>