WhatsApp的开始与android.content.Intent.ACTION_SENDTO [英] start whatsapp with android.content.Intent.ACTION_SENDTO

查看:241
本文介绍了WhatsApp的开始与android.content.Intent.ACTION_SENDTO的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我triying开始了WhatsApp与Android的意图:

I'm triying to start whatsapp with an android intent:

String uri = "smsto:+123456";
Intent messageIntent = new Intent(Intent.ACTION_SENDTO, Uri.parse(uri));
messageIntent.putExtra("sms_body", "My Message");
startActivity(messageIntent);

如果用户挑选正常消息传递应用程序它的伟大工程。但如果用户从选择器选择WhatsApp的。 撰写文本域WhatsApp的仍然是空的。

It works great if the user picks the normal messaging application. But not if the user selects whatsapp from the chooser. The "compose text field" from whatsapp remains empty.

我在做什么错在这里?我是否需要另一个 putExtra()

What am I doing wrong here? Do I need another putExtra()?

推荐答案

下面是从WhatsApp的Andr​​oid的支持团队回答:

Here is the answer from the whatsapp android support team:

这篇关于WhatsApp的开始与android.content.Intent.ACTION_SENDTO的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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