title: LocalBroadcastManager, redundant activities, Activity lifecycle
body: <p>I have a big application, our first activity is MainActivity the second one is a LoginActivity (For multiple reason can be a Fragment or a DialogFragment)</p>
  
  <p>The LoginActivity is initialized by MainActivity, in a normal flow, the application need to reload the header in a NavigationDrawer. 
  I already have a function like this, in MainActivity. </p>
  
  <pre><code>private void loadUser () {
     //Reload header
  }
  </code></pre>
  
  <p>Inside the LoginActivity I have a LocalBroadcastManager like the next one</p>
  
  <pre><code>Intent intent = new Intent ("RELOAD_MENU");
  LocalBroadcastManager.getInstance(c).sendBroadcast(intent);
  </code></pre>
  
  <p>Inside MainActivity I have the receiver</p>
  
  <pre><code> private BroadcastReceiver loginReceiver = new BroadcastReceiver() {
      @Override
      public void onReceive(Context arg0, Intent arg1) {
          loadUser();
      }
  };
  </code></pre>
  
  <p>onPause and onResume on the MainActivity</p>
  
  <pre><code>@Override
  protected void onResume() {
      super.onResume();
  LocalBroadcastManager.getInstance(this).registerReceiver(loginReceiver,
              new IntentFilter("RELOAD_MENU"));
  }
  
  
  @Override
  protected void onPause() {
      //LocalBroadcastManager onPause
      super.onPause();
         LocalBroadcastManager.getInstance(this).unregisterReceiver(loginReceiver);
  }
  </code></pre>
  
  <p>I missing something? </p>
  
  <p>There is a problem with Activity A initialize Activity B and then Activity B start a LocalBroadcast that the Activity A must heard? </p>
  
  <p>I also make some test with onDestroy just for testing, Im not receiving the LocalBroadcast.</p>