title: Broadcast is not getting received[LocalBroadcastManager] Android
body: <p>Can you help me resolve this issue, I have implemented a receiver(registered via XML) which listens for particular local broadcasts, and in turn starts a service for further processing, but somehow that receiver is not receiving any broadcasts.</p>
  
  <p>Although another receiver, which is registered locally through code is able to receive the broadcast, can you help me fix this. Below is my code.</p>
  
  <pre><code>// Sending broadcast
  Intent intent = new Intent(Constants.ACTION_PROFILE_UPDATED);
  LocalBroadcastManager.getInstance(POC.getAppContext()).sendBroadcast(intent);
  
  // Receiver
  public class LocalReceiver extends BroadcastReceiver {
  
      private final String TAG = LocalReceiver.class.getSimpleName();
  
      @Override
      public void onReceive(Context context, Intent intent) {
          Log.i(TAG, "received"); // its not received
          if(intent.getAction() != null){
              String action = intent.getAction();
              Log.i(TAG, "action = " + action);
  
              if(action.equals(Constants.ACTION_PROFILE_UPDATED)){
  
  
  // IN manifest
          &lt;receiver
              android:name=".LocalReceiver"
              android:enabled="true"
              android:exported="false" &gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="local.action.profile.updated" /&gt;
  
                  &lt;category android:name="android.intent.category.DEFAULT" /&gt;
              &lt;/intent-filter&gt;
          &lt;/receiver&gt;
  </code></pre>
  
  <p>This damn code is not working, no where in developer guide it says local broadcast wont be received, through receiver registered through xml.</p>
  
  <p>Please help,
  Thanks.</p>