谷歌语音短信的意图 [英] Google Voice SMS intent

查看:126
本文介绍了谷歌语音短信的意图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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的短信活动 - 犯规 - 填充 - 手机/

这篇关于谷歌语音短信的意图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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