问题
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.
来源:https://stackoverflow.com/questions/9749495/how-do-i-show-the-tts-preference-activity-settings-screen-which-intent-do-i-nee