title: Why Android BroadcastReceiver not WORKING?
body: <p>BroadcastReceiver is not working....</p>
  <p>Can someone help please I think I tried everything!</p>
  <p>I can register it from the activity and its works fine but I want to register it from the manifest</p>
  <pre><code>public class MyRecever extends BroadcastReceiver {
  
  @Override
  public void onReceive(Context context, Intent intent) {
      Log.d(&quot;RECIVER STATE&quot;,&quot;on at START&quot;);
     
      String state = intent.getStringExtra(TelephonyManager.EXTRA_STATE);
      String incomingNumber = intent.getStringExtra(TelephonyManager.EXTRA_INCOMING_NUMBER);
      if(state.equals(TelephonyManager.EXTRA_STATE_RINGING)) {
        
          Toast.makeText(context, incomingNumber.toString(), Toast.LENGTH_LONG).show();
          Log.d(&quot;RECIVER STATE&quot;,&quot;on while RINGING&quot;);
      }
  
      }
  </code></pre>
  <p>this is my manifest:</p>
  <pre><code>&lt;manifest xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      package=&quot;com.example.myapplication&quot;&gt;
      &lt;uses-permission android:name=&quot;android.permission.READ_PHONE_STATE&quot;/&gt;
      
  
      &lt;application
          android:allowBackup=&quot;true&quot;
          android:icon=&quot;@mipmap/ic_launcher&quot;
          android:label=&quot;@string/app_name&quot;
          android:roundIcon=&quot;@mipmap/ic_launcher_round&quot;
          android:supportsRtl=&quot;true&quot;
          android:theme=&quot;@style/AppTheme&quot;&gt;
          &lt;activity android:name=&quot;.MainActivity&quot;&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name=&quot;android.intent.action.MAIN&quot; /&gt;
  
                  &lt;category android:name=&quot;android.intent.category.LAUNCHER&quot; /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
          &lt;receiver android:name=&quot;.MyRecever&quot; android:exported=&quot;true&quot;&gt;
              &lt;intent-filter&gt;
              &lt;action android:name=&quot;android.intent.action.PHONE_STATE&quot;/&gt;
          &lt;/intent-filter&gt;
          &lt;/receiver&gt;
  
      &lt;/application&gt;
  </code></pre>