How do I show the TTS Preference Activity Settings

2019-04-14 12:32发布

问题:

I have implemented the TTS support for reading the Text Strings in my Application, and that works just fine. What I want to achieve is , that the user is able to Open the Preferences for TTS and can make changes according to his/her wish.

I know there has to be some intent call that is required to be made to open the Settings Screen, but I am not able to find any thing related to it.

Anyone any suggestions?

回答1:

Found out,

intent = new Intent();
intent.setAction("com.android.settings.TTS_SETTINGS");
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
this.startActivity(intent);

This seems to work just perfectly to bring on the TTS Settings screen. Hope this helps someone.