Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a5627cd0 authored by Tyler Gunn's avatar Tyler Gunn Committed by android-build-merger
Browse files

Merge "Add InCallService docs to state prerequisites for be being a dialer app." am: 6a303171

am: 07545d18

Change-Id: I040613717aef7626dff3eafb2f49c943255d5795
parents 0f7857e5 07545d18
Loading
Loading
Loading
Loading
+20 −0
Original line number Diff line number Diff line
@@ -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 {