我正在尝试通过传递文本来通过我的应用程序打开whatsapp对话。
val uri = Uri.parse("https://wa.me/" + numberWhatsapp.replace("[^0-9]".toRegex(),"") + "?text=I'm%20interested%20in%20your%20car%20for%20sale")
val intent = Intent(Intent.actION_VIEW,uri)
activity.startactivity(intent)
但是我想连同文字一起传递链接。像这样:
"...text=" + link + "I'm%20interested%20in%20your%20car%20for%20sale"
我仍然无法通过意图传递链接来使其工作。有人可以帮我吗?