Merge "Add a comment to speech recognition service requiring clients targeting Android 11 to specify a <queries> tag." am: 8c6820048d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1660358 Change-Id: Iffbe962bb5fa16fafba08bb1b91c35f6de8116b5
This commit is contained in:
@@ -205,6 +205,17 @@ public class SpeechRecognizer {
|
||||
* command to the created {@code SpeechRecognizer}, otherwise no notifications will be
|
||||
* received.
|
||||
*
|
||||
* <p>For apps targeting Android 11 (API level 30) interaction with a speech recognition
|
||||
* service requires <queries> element to be added to the manifest file:
|
||||
* <pre>{@code
|
||||
* <queries>
|
||||
* <intent>
|
||||
* <action
|
||||
* android:name="android.speech.RecognitionService" />
|
||||
* </intent>
|
||||
* </queries>
|
||||
* }</pre>
|
||||
*
|
||||
* @param context in which to create {@code SpeechRecognizer}
|
||||
* @return a new {@code SpeechRecognizer}
|
||||
*/
|
||||
@@ -222,7 +233,18 @@ public class SpeechRecognizer {
|
||||
* {@link SpeechRecognizer} to. Normally you would not use this; use
|
||||
* {@link #createSpeechRecognizer(Context)} instead to use the system default recognition
|
||||
* service.
|
||||
*
|
||||
*
|
||||
* <p>For apps targeting Android 11 (API level 30) interaction with a speech recognition
|
||||
* service requires <queries> element to be added to the manifest file:
|
||||
* <pre>{@code
|
||||
* <queries>
|
||||
* <intent>
|
||||
* <action
|
||||
* android:name="android.speech.RecognitionService" />
|
||||
* </intent>
|
||||
* </queries>
|
||||
* }</pre>
|
||||
*
|
||||
* @param context in which to create {@code SpeechRecognizer}
|
||||
* @param serviceComponent the {@link ComponentName} of a specific service to direct this
|
||||
* {@code SpeechRecognizer} to
|
||||
|
||||
Reference in New Issue
Block a user