首页 > 解决方案 > 将图像发送到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)));
        } 

标签: xamarin.android

解决方案


推荐阅读