Small confusion about PhoneStateIntentReceiver
<pre><code>public class MyReceiver extends PhoneStateIntentReceiver {        
  @Override        
  public void onReceiveIntent(Context context, Intent intent) {  
    if (intent.action == Intent.CALL_ACTION) {                             
    }
  }
}
</code></pre>

<p>assume that notifyPhoneCallState has been called to enable MyReceiver to receive notifications abt phone call states, in which case the code will get executed?</p>

<p>when device receives an incoming call,
when outgoing call is initiated  on the device,
when the user presses the call button,
incoming phone call is terminated</p>

<p>or will the code not be executed at all?</p>
