android-make whatsapp call
问题 I want to make a WhatsApp call to a specific user. I tried this and it doesn't work: Uri uri = Uri.parse("callto:" + phoneNUmber); Intent i = new Intent(Intent.ACTION_CALL, uri); i.setPackage("com.whatsapp"); startActivity(i); I know how to create a WhatsApp message, the code is similar and it works: Uri uri = Uri.parse("smsto:" + phoneNUmber); Intent i = new Intent(Intent.ACTION_SENDTO, uri); i.setPackage("com.whatsapp"); startActivity(i); 回答1: Simple solution is, Query ContactContract.Data