title: Android - Registering a broadcast receiver for two intents?
body: <p>I was wondering is it possible to register a broadcast receiver to receive two intents?</p>
  
  <p>My code is as follows:</p>
  
  <pre><code>sipRegistrationListener = new BroadcastReceiver(){
      @Override
      public void onReceive(Context context, Intent intent) {
          String action = intent.getAction(); 
  
          if (SIPEngine.SIP_REGISTERED_INTENT.equals(action)){
              Log.d("SETTINGS ", "Got REGISTERED action");
          }   
  
          if (SIPEngine.SIP_UNREGISTERED_INTENT.equals(action)){
              Log.d("SETTINGS ", "Got UNREGISTERED action");
          }   
      }
  };
  
  context.registerReceiver(sipRegistrationListener, new IntentFilter(SIPEngine.SIP_REGISTERED_INTENT));
  context.registerReceiver(sipRegistrationListener, new IntentFilter(SIPEngine.SIP_UNREGISTERED_INTENT));
  </code></pre>
  
  <p>I get the REGISTERED Intent everytime I send it but I never get the UNREGISTERED Intent when I send it.</p>
  
  <p>Should I set up another Broadcast receiver for the UNREGISTERED Intent?</p>