title: android Speech recognition API.System always recognizes default language
body: <p>Here is how my code looks.</p>
  
  <pre><code>//loc will be either "ru-RU" or "en-US"
  speechRecognizerIntent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
  speechRecognizerIntent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);
  speechRecognizerIntent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, loc);
  speechRecognizerIntent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_PREFERENCE, loc); 
  speechRecognizerIntent.putExtra(RecognizerIntent.EXTRA_ONLY_RETURN_LANGUAGE_PREFERENCE, loc);
  </code></pre>
  
  <p>Problem is that, when I am using the program with different phones it works well.But with my cell phone it always chooses default language. And rare times it is just mixing recognition languages. Like half of the result is in one language other half in another language.
  I dont know whether it is cause of system  or from code itself? 
  Plus It worked well before on my phone too. Can it be cause of some settings?
  How can I overcome and fix it? I need to know to inform users how to fix it if they will have the same problem</p>
  
  <p><a href="https://stackoverflow.com/questions/25467163/how-can-i-use-voice-recognition-with-other-languages-android?lq=1">How can I use voice recognition with other languages android</a></p>
  
  <p><a href="https://stackoverflow.com/questions/25417439/speechrecognizer-with-google-search-version-3-6-14-1337016-cant-recognize-other">SpeechRecognizer with Google Search version 3.6.14.1337016 can't recognize other voice language except default</a></p>