xamarin.android - 将图像发送到whatsapp xamarin android
问题描述
如何将手机内存中的图像发送到 WhatsApp?
代码发送字符串
private void Button1_Click(object sender, System.EventArgs e)
{
string phoneNumberWithCountryCode = "88167xxxxxxx";
string message = "Hallo";
StartActivity(new Intent(Intent.ActionView,
Uri.Parse("https://api.whatsapp.com/send?phone=" + phoneNumberWithCountryCode + "&text=" + message)));
}
解决方案
推荐阅读
- java - mXn 矩阵从左上角到右下角的所有可能路径
- python - Python - 仅保留字母数字和空格,并忽略非 ASCII
- python - 使用python3.6创建virtualenv时,模块'enum'没有属性'IntFlag'?
- opencv - 结果不佳的光学字符检测(TensorFlow 和 OpenCV)
- google-bigquery - 尝试使用变量路径名时出错:JSONPath 必须是字符串文字或查询参数
- python-3.x - kivy 无法正确显示某些 unicode 字符
- python-appium - 当我尝试使用“appium -v”检查 appium 版本时,我收到未找到命令。我能做些什么?
- .net - 为什么 URL 重写模块使 CLR 在 IIS 8.5 中停止?
- mysql - 如何向已包含数据的 MariaDB 表添加键?
- deep-learning - 当我们更改输入图像大小时,Deeplab v3 输出会发生变化