How do I show the TTS Preference Activity Settings Screen, which intent Do I need to call

有些话、适合烂在心里 提交于 2019-12-21 22:41:36

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!