I want to open a specific contact in my whatsapp by clicking a button I am using this code but it is not working it automatically closes my app and said, unfortunately, your app has stopped
btn1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Uri uri = Uri.parse("smsto:"+"923225576313");
Intent i = new Intent(Intent.ACTION_SENDTO,uri);
i.setPackage("com.whatsapp");
startActivity(i);
Please guide me.