Can't get incoming call event
<p>I want to implement getting incoming call events in background and foreground. So I've created BroadcastReceiver for that purpose, but onReceive() method doesn't fired after I got/getting/finished incoming call. 
I've tryed tons of tutorial, but nothing helped me:(</p>

<p>Please help.</p>

<p><strong>MANIFEST</strong></p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="yakiv.bondar.dev.incomeoutcomecalltest"&gt;

&lt;uses-permission android:name="android.permission.PROCESS_OUTGOING_CALLS" /&gt;
&lt;uses-permission android:name="android.permission.READ_PHONE_STATE" /&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=".IncomingCall"
        android:enabled="true"&gt;
        &lt;intent-filter&gt;
            &lt;action android:name="android.intent.action.PHONE_STATE" /&gt;
        &lt;/intent-filter&gt;
    &lt;/receiver&gt;
&lt;/application&gt;
</code></pre>

<p></p>

<p><strong>Broadcast receiver</strong></p>

<pre><code>public class IncomingCall extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
    Log.d("tag", "AAAAAAAAAAAAAAAAAAAAAA");
    MyPhoneStateListener phoneListener=new MyPhoneStateListener();
    TelephonyManager telephony = (TelephonyManager)
            context.getSystemService(Context.TELEPHONY_SERVICE);
    telephony.listen(phoneListener, PhoneStateListener.LISTEN_CALL_STATE);
}

public class MyPhoneStateListener extends PhoneStateListener {
    public void onCallStateChanged(int state,String incomingNumber){
        switch(state){
            case TelephonyManager.CALL_STATE_IDLE:
                Log.d("tag", "IDLE");
                break;
            case TelephonyManager.CALL_STATE_OFFHOOK:
                Log.d("tag", "OFFHOOK");
                break;
            case TelephonyManager.CALL_STATE_RINGING:
                Log.d("tag", "RINGING");
                break;
        }
    }
}
}
</code></pre>

<p><strong>Main Activity</strong></p>

<pre><code>public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }
}
</code></pre>