【发布时间】:2012-03-02 15:28:15
【问题描述】:
我想知道在 Honeycomb 中显示文本到语音设置页面的方式是什么。
在以前的 Android 版本中,使用操作 com.android.settings.TTS_SETTINGS 有效。现在它给出了一个类转换异常。
How show “Voice Input and Output” settings page from application
06-06 06:59:33.556: ERROR/AndroidRuntime(476): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.android.settings/com.android.settings.TextToSpeechSettings}: java.lang.ClassCastException: com.android.settings.TextToSpeechSettings cannot be cast to android.app.Activity
【问题讨论】:
-
使用 com.android.settings.VOICE_INPUT_OUTPUT_SETTINGS 通过打开语言和输入来工作。但是有没有办法直接打开文字转语音设置呢?
标签: android android-3.0-honeycomb text-to-speech