title: ANDROID BroadcastReceiver don't fire
body: <p>I wrote applications for android 4.1(16 API) that should respond to the incoming call, but it don't happen. I see many tutorials and it too simple to make any mistake but... I use Android studio 1.4. Telephone with apk is Nexus 6 with android 6.0.1. Any idea what I do wrong?</p>
  
  <p>This is a BroadcastReceiver class:</p>
  
  <pre><code>public class MyReceiver extends BroadcastReceiver {
  
  @Override
  public void onReceive(Context context, Intent intent) {
      Log.w("MY_DEBUG_TAG", "onReceive");
      Bundle extras = intent.getExtras();
      if (extras != null) {
          String state = extras.getString(TelephonyManager.EXTRA_STATE);
          Log.w("MY_DEBUG_TAG", state);
          if (state.equals(TelephonyManager.EXTRA_STATE_RINGING)) {
              String phoneNumber = extras
                      .getString(TelephonyManager.EXTRA_INCOMING_NUMBER);
              Log.w("MY_DEBUG_TAG", phoneNumber);
          }
      }
  
  }
  }
  </code></pre>
  
  <p>And this is my 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="pl.tronix.myapplication" &gt;
  
  &lt;application
      android:allowBackup="true"
      android:icon="@mipmap/ic_launcher"
      android:label="@string/app_name"
      android:supportsRtl="true"
      android:theme="@style/AppTheme" &gt;
      &lt;activity android:name=".MainActivity" &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="MyReceiver"
          android:enabled="true"
          android:exported="false"
          &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;/application&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /&gt;
  &lt;uses-permission android:name="android.permission.READ_PHONE_STATE" /&gt;
  &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
  </code></pre>
  
  <p></p>
  
  <p>And mainActivity:</p>
  
  <pre><code>public class MainActivity extends AppCompatActivity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
      }
  }
  </code></pre>