将图像发送到whatsapp xamarin android

时间:2020-03-27 05:58:02

标签: 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)));
        } 

0 个答案:

没有答案