How to check if a specific language data for Text to Speech(TTS) is installed on a device?
问题 I am creating an app which uses Text to Speech and I want the user to have the ability to use it offline so I make a check to see if the TTS data is installed on the device, here is thde code which does this: // Check tts data is installed Intent checkTTSIntent = new Intent(); checkTTSIntent.setAction(TextToSpeech.Engine.ACTION_CHECK_TTS_DATA); startActivityForResult(checkTTSIntent, MY_DATA_CHECK_CODE); protected void onActivityResult(int requestCode, int resultCode, Intent data){ if