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
This commit is contained in:
Tyler Gunn
2019-04-05 13:35:11 -07:00
parent 37f6620029
commit 43a0c8191c

View File

@@ -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)