diff options
author | Divya Sharma <divyash@codeaurora.org> | 2018-02-27 08:32:05 -0800 |
---|---|---|
committer | Divya Sharma <divyash@codeaurora.org> | 2018-02-27 08:32:05 -0800 |
commit | 4e4914b22b779e6376bb00ae20636175b2a70d8c (patch) | |
tree | f4ebc5eae2c99e20aceefcc9ffc3de19782f0fbe /telecomm/java/android/telecom/InCallService.java | |
parent | dbed40a3cd31af821ea99c605664908d67df2747 (diff) | |
parent | ed5d4d06907844e1c87a6ee17c4f2868a8cc6d56 (diff) |
PPR1.180219.001_AOSP_Merge
Conflicts:
core/res/res/values/config.xml
core/res/res/values/symbols.xml
packages/SystemUI/res/values/config.xml
packages/SystemUI/src/com/android/keyguard/KeyguardUpdateMonitor.java
packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java
telecomm/java/android/telecom/Call.java
telecomm/java/android/telecom/Connection.java
telecomm/java/android/telecom/ConnectionService.java
Change-Id: I524d38a61608069028b3496a189118d8eff75f4b
Diffstat (limited to 'telecomm/java/android/telecom/InCallService.java')
-rw-r--r-- | telecomm/java/android/telecom/InCallService.java | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/telecomm/java/android/telecom/InCallService.java b/telecomm/java/android/telecom/InCallService.java index fcf04c9a7eef..af65c65a48b7 100644 --- a/telecomm/java/android/telecom/InCallService.java +++ b/telecomm/java/android/telecom/InCallService.java @@ -60,6 +60,26 @@ import java.util.List; * </service> * } * </pre> + * <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 + * how this is done: + * <pre> + * {@code + * <activity android:name="your.package.YourDialerActivity" + * android:label="@string/yourDialerActivityLabel"> + * <intent-filter> + * <action android:name="android.intent.action.DIAL" /> + * <category android:name="android.intent.category.DEFAULT" /> + * </intent-filter> + * </activity> + * } + * </pre> + * <p> + * When a user installs your application and runs it for the first time, you should prompt the user + * to see if they would like your application to be the new default phone app. See the + * {@link TelecomManager#ACTION_CHANGE_DEFAULT_DIALER} intent documentation for more information on + * how to do this. */ public abstract class InCallService extends Service { |