谷歌语音短信的意图意图、语音、短信

2023-09-03 20:59:37 作者:灬祇zんι菿寵ηι)

现在我正在试图建立一个短信意图与一个人口数。

Right now I'm trying to create an SMS intent with a populated number.

Intent sendIntent = new Intent(Intent.ACTION_VIEW);
sendIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 
sendIntent.setData(Uri.parse("smsto:"+phoneNumber));
context.startActivity(sendIntent);
setResultData(null);

这正常工作与手机的短信应用程序,但问题是,如果谷歌语音已安装并在用户选择此选项,而不是正常的短信应用程序,谷歌语音将不填充数字。

this works fine with the phone's SMS app, however the problem is that if Google Voice is installed and the user selects this option rather than the normal SMS app, google voice won't populate the number.

有没有一种方法来填充在谷歌语音号码与短信意图是什么?

Is there a way to populate the number in google voice with an SMS intent?

推荐答案

本博客文章似乎是你所追求的:意图设置的电话号码的短信。元数据的冗余设置,也许可以帮助谷歌语音增强型手机。

This blog post seems to be about what you are after: the Intent setting the phone number for the SMS. The redundant setting of metadata maybe helps Google Voice-enhanced phones.

http://juristr.com/blog / 2009/12 / Android的短信活动 - 犯规 - 填充 - 手机/