From 43a0c8191c52f593da08c011ceaa14d3835d810c Mon Sep 17 00:00:00 2001 From: Tyler Gunn Date: Fri, 5 Apr 2019 13:35:11 -0700 Subject: [PATCH] Update NEW_OUTGOING_CALL broadcast deprecation docs. Include alternative for detecting outgoing calls using the PhoneStateListener. Test: Docs only change. Bug: 76150844 Change-Id: I00a1c5619a67703beccd65e7ece6c16eca1c1a6e --- core/java/android/content/Intent.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/java/android/content/Intent.java b/core/java/android/content/Intent.java index b879047f05dcd..a9ba6ca1ea99f 100644 --- a/core/java/android/content/Intent.java +++ b/core/java/android/content/Intent.java @@ -2999,7 +2999,10 @@ public class Intent implements Parcelable, Cloneable { * * @deprecated Apps that redirect outgoing calls should use the * {@link android.telecom.CallRedirectionService} API. Apps that perform call screening - * should use the {@link android.telecom.CallScreeningService} API. + * should use the {@link android.telecom.CallScreeningService} API. Apps which need to be + * notified of basic call state should use + * {@link android.telephony.PhoneStateListener#onCallStateChanged(int, String)} to determine + * when a new outgoing call is placed. */ @Deprecated @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)