diff options
author | 2021-09-07 17:50:40 +0000 | |
---|---|---|
committer | 2021-09-07 17:50:40 +0000 | |
commit | 550f4dd9a065e0d19c088e4c906e64a6ca82c55d (patch) | |
tree | ec5dbcb9d64eeaad5b001014a3be131a826bdb12 | |
parent | 00a839da5a777da53242447df96a5710c7caef1f (diff) | |
parent | 733dd0f1e9e64493b167b9d3b771520dcfed0a13 (diff) |
Merge "Update API docs for InCallService." am: 733dd0f1e9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1818366
Change-Id: I54c94567fa6677f1cfe2ca818c889275d8cb6f1c
-rw-r--r-- | telecomm/java/android/telecom/InCallService.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/telecomm/java/android/telecom/InCallService.java b/telecomm/java/android/telecom/InCallService.java index c365648db8f8..cac716efe78f 100644 --- a/telecomm/java/android/telecom/InCallService.java +++ b/telecomm/java/android/telecom/InCallService.java @@ -81,7 +81,8 @@ import java.util.List; * <pre> * {@code * <service android:name="your.package.YourInCallServiceImplementation" - * android:permission="android.permission.BIND_INCALL_SERVICE"> + * android:permission="android.permission.BIND_INCALL_SERVICE" + * android:exported="true"> * <meta-data android:name="android.telecom.IN_CALL_SERVICE_UI" android:value="true" /> * <meta-data android:name="android.telecom.IN_CALL_SERVICE_RINGING" * android:value="true" /> @@ -91,6 +92,10 @@ import java.util.List; * </service> * } * </pre> + * + * <em>Note: You should NOT mark your {@link InCallService} with the attribute + * {@code android:exported="false"}; doing so can result in a failure to bind to your implementation + * during calls.</em> * <p> * In addition to implementing the {@link InCallService} API, you must also declare an activity in * your manifest which handles the {@link Intent#ACTION_DIAL} intent. The example below illustrates |