diff options
| author | 2018-02-10 01:52:07 +0000 | |
|---|---|---|
| committer | 2018-02-10 01:52:07 +0000 | |
| commit | 07545d18a2485e3708a4a0d5e33dfebbe045ee60 (patch) | |
| tree | 620ccb0e34307aad903684409ffa4abb439daad7 | |
| parent | e736f83caf2019aa12d99904e60774e28f2802ae (diff) | |
| parent | 6a3031713cf04b72b1d5740428469a36b6b6d42e (diff) | |
Merge "Add InCallService docs to state prerequisites for be being a dialer app."
am: 6a3031713c
Change-Id: I08fb54de452d6f334232d24caf8f89caba85c515
| -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 { |