Question:Consider the code snippet below:
public class MyReceiver extends PhoneStateIntentReceiver { @Override public void onReceiveIntent(Context context, Intent intent) { if (intent.action == Intent.CALL_ACTION) { } } }Assuming that notifyPhoneCallState has been called to enable MyReceiver to receive notifications about the phone call states, in which of the following cases will the code in get executed?
A When the device receives an incoming phone call.
B When an outgoing phone call is initiated on the device.
C When the user presses the CALL button on the device.
D The code in will never get executed.
+ AnswerB
+ Report