Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7698731
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T22:18:39+00:00 2026-05-31T22:18:39+00:00

I am studying how the android.speech package works and I noticed that most of

  • 0

I am studying how the android.speech package works and I noticed that most of the extras used with the intent RecognizerIntent.ACTION_WEB_SEARCH are ignored by the speech recognizer.

  • If I set a language using the RecognizerIntent.EXTRA_LANGUAGE extra, the specified language is ignored, but the default language of the device is always used.
  • If I set a text using the RecognizerIntent.EXTRA_PROMPT, this text is not displayed.
  • If I start the speech recognition activity using startActivityForResult method, then the speech recognizer calls onActivityResult, but the second argument (the resultCode) is always RESULT_CANCELED and the third argument (the data Intent) is always null. This behavior is probably due to the fact that the purpose of this type of intent is to perform a search on the web. For the same reason, if I set the maximum number of results using RecognizerIntent.EXTRA_MAX_RESULTS, the specified value is ignored.

I found this behavior, but the official documentation says that these options can also be used for the ACTION_WEB_SEARCH intent.

Why does the actual behavior of the voice recognition system differ from what is stated in official documentation?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T22:18:40+00:00Added an answer on May 31, 2026 at 10:18 pm

    I think you are using the wrong action. Instead of ACTION_WEB_SEARCH, use ACTION_RECOGNIZE_SPEECH.

    If you do, onActivityResult will behave as you expect and your Activity will be in control of interpreting the recognition results.

    By the way, when you set ACTION_WEB_SEARCH, you delegate handling of the results to Android. Based on what the user says, Android might start a web browser or it might start an email (if the user says “email”). Because of this it makes sense that your Activity does not receive any useful information, although I think it should still take into account RecognizerIntent.EXTRA_LANGUAGE.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I start studying this: Android SplashScreen and my app works perfectly with this method.
Kinda new to iOS, Im also studying Android. kinda confuse on arrays. How to
I've was studying on some source code from this link http://android-er.blogspot.com/2010/12/add-overlay-on-camera-preview.html what should i
I started studying android NFC ,I am Confused about NFC tag(i think it is
I am studying android's sample Wiktonary in how to create a widget for android.
While studying the Collection API, we find that some methods ( add , remove
I am new to Android, and was studying the framework and it compelled me
i studying TDateTime functions and procedure, but not found something that allow me to
Question 1: I am studying Android service and often see code like this: private
I'm studying right now the bluetooth Android API, and I ran into the BluetoothChat

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.