我有一个项目来修改盲人的Android手机,因此我使用Android文本语音.
我已经设法使用http://code.google.com/p/eyes-free/中的 TTS库创建了一个短信和电话应用程序,并使用myTTS.speak来说出文字.
问题来自当我使用对讲来说其他应用程序,如启动器,浏览器等.当我使用对讲时,他们可以说那些应用程序,但当我打开我的应用程序(短信和电话)有两个声音,首先来自对讲和建立在我的应用程序的myTTS.speak中,我如何才能在我的应用程序(短信和手机)中禁用对讲?所以说话只来自我在TTS内置的应用程序,因为当我打开其他应用程序时我需要对讲
感谢名单
我想要一个完全自定义的警报框,我希望我的背景图像,我的自定义按钮和我的自定义消息,目前我正在使用默认警报框只有我的消息,但我希望它是完全自定义警报框正如我先前所说
请帮助我,如果可能的话,请分享一个示例代码片段:)
目前代码是这样的: -
AlertDialog.Builder alertDialogBuilder3 = new AlertDialog.Builder(context);
alertDialogBuilder3.setTitle("Location Check");
alertDialogBuilder3
.setMessage("Do you want to cancel loading?")
.setCancelable(false)
.setPositiveButton("Ok",new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog,int id) {
LAtestTab.this.finish();
}
})
.setNegativeButton("No",new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog,int id) {
// if this button is clicked, just close
// the dialog box and do nothing
dialog.cancel();
}
});
;
AlertDialog alertDialog3 = alertDialogBuilder3.create();
alertDialog3.show();
Run Code Online (Sandbox Code Playgroud)