请看下面的代码片段:
public class MyReceiver extends PhoneStateIntentReceiver {
@Override
public void onReceiveIntent(Context context, Intent intent) {
if (intent.action == Intent.CALL_ACTION) {
}
}
}
假设调用notifyPhoneCallState使MyReceiver能够接收有关电话呼叫状态的通知,那么在以下哪种情况下会执行其中的代码?( )
设备接到来电时。
当设备发起拨出电话时。
当用户按下设备上的呼叫按钮时。
来电终止时。
输入的代码永远不会被执行。