如何显示的TTS preference活动设置屏幕,它的意图我需要调用 [英] How do I show the TTS Preference Activity Settings Screen, which intent Do I need to call

查看:162
本文介绍了如何显示的TTS preference活动设置屏幕,它的意图我需要调用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经实现了TTS支持我的应用程序阅读的文本字符串,并且工作得很好。
我想实现的是,用户能够打开TTS的preferences,可以使根据他/她的意愿改变。

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.

任何人有什么建议?

推荐答案

发现了,

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

这似乎只是完美的工作带来了TTS设置屏幕上。
希望这可以帮助别人。

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

这篇关于如何显示的TTS preference活动设置屏幕,它的意图我需要调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆