Google 语音短信意图
现在我正在尝试使用填充的号码创建短信意图。
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);
这适用于手机的短信应用程序,但问题是,如果安装了谷歌语音并且用户选择此选项而不是普通的短信应用程序,谷歌语音将不会填充该号码。
有没有办法用短信意图填充谷歌语音中的号码?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以在此处查看“Google 语音意图和参数列表”
http://groups.google.com/group /appinventor/browse_thread/thread/2e857e86f113109b?tvc=2&pli=1
You can check here "list of google voice intents and arguments"
http://groups.google.com/group/appinventor/browse_thread/thread/2e857e86f113109b?tvc=2&pli=1
这篇博文似乎是关于您所追求的:设置短信电话号码的意图。元数据的冗余设置可能有助于谷歌语音增强型手机。
http://juristr.com/blog/2009/ 12/android-sms-activity-doesnt-fill-phone/
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-sms-activity-doesnt-fill-phone/