title: How to set the Voice Search Language in Android programmatically?
body: <p>I am trying to develop a voice recognition app which recognizes and displays selected languages.
  I have used the following intent extras:</p>
  
  <pre><code>    i.putExtra(RecognizerIntent.EXTRA_LANGUAGE_PREFERENCE, "zh-CN");
      i.putExtra(RecognizerIntent.EXTRA_SUPPORTED_LANGUAGES, "zh-CN");
  </code></pre>
  
  <p>However, the text displayed is not in the preferred language. It only works when I manually go and change the default language in Settings >> Language and input >> Voice search. Is there a way for me to change the voice search language programmatically? </p>