我的努力:-
有时它显示数字未注册在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)