通过编程方式通过Android应用发送消息时,我得到“ +”前缀

时间:2018-12-19 17:26:56

标签: java android

我的努力:-

有时它显示数字未注册在whatsapp上,因为我没有在其中添加“ +”

        Uri uri = Uri.parse("https://api.whatsapp.com/send?phone=" + "998236XXXX" + "&text=" + "Hello");

        Intent sendIntent = new Intent(Intent.ACTION_VIEW, uri);

        getActivity().startActivity(sendIntent);

我尝试过 Send text to specific contact programmatically (whatsapp)

0 个答案:

没有答案
相关问题