My current code below works fine when using the "ZH" ISO code for Mandarin but won't for Cantonese. This is the code below
Intent i = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
String myLanguage= "yue";
i.putExtra(RecognizerIntent.EXTRA_LANGUAGE, myLanguage);
i.putExtra(RecognizerIntent.EXTRA_LANGUAGE_PREFERENCE, myLanguage);
i.putExtra(RecognizerIntent.EXTRA_ONLY_RETURN_LANGUAGE_PREFERENCE, myLanguage);