title: BroadcastReceiver.onReceive is not called for PHONE_STATE
body: <p>Following this tutorial: <a href="http://www.vogella.de/articles/AndroidServices/article.html#receiver" rel="nofollow">http://www.vogella.de/articles/AndroidServices/article.html#receiver</a> I created my own project. 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="alex.broadcast.sample"
      android:versionCode="1"
      android:versionName="1.0" &gt;
  
      &lt;uses-sdk android:minSdkVersion="13" /&gt;
      &lt;application
          android:icon="@drawable/ic_launcher"
          android:label="@string/app_name" &gt;
  
          &lt;receiver android:name="MyPhoneReceiver"&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.PHONE_STATE"&gt;&lt;/action&gt;
              &lt;/intent-filter&gt;
          &lt;/receiver&gt;
  
          &lt;uses-permission android:name="android.permission.READ_PHONE_STATE"&gt;&lt;/uses-permission&gt;
      &lt;/application&gt;
  &lt;/manifest&gt;
  </code></pre>
  
  <p>Code:</p>
  
  <pre><code>public class MyPhoneReceiver extends BroadcastReceiver {
  final String logTag = "BroadcastReceiverSample";
  
  @Override
  public void onReceive(Context context, Intent intent) {
      Bundle extras = intent.getExtras();
      if (extras != null) {
          String state = extras.getString(TelephonyManager.EXTRA_STATE);
  
          Log.i(logTag, "Call state: " + state);
  
          if (state.equals(TelephonyManager.EXTRA_STATE_RINGING)) {
              String phoneNumber = extras.getString(TelephonyManager.EXTRA_INCOMING_NUMBER);
              Log.i(logTag, "Phone number: " + phoneNumber);
          }
      }
  }
  }
  </code></pre>
  
  <p>Running this sample on Android simulator, I see that it is successfully installed. However, onReceive function is never called. I make incoming call using:</p>
  
  <pre><code>telnet localhost 5554
  gsm call 12345678
  </code></pre>
  
  <p>Emulator shows incoming call, but onReceive is not called.</p>