Whatsapp Sms Intent:
Whatsapp Sms Intent:
String phoneNumberWithCountryCode = "+8801746428299";
String message = "আসসালামু আলাইকুম";
startActivity(
new Intent(Intent.ACTION_VIEW,
Uri.parse(
String.format("https://api.whatsapp.com/send?phone=%s&text=%s", phoneNumberWithCountryCode, message)
)
)
);
Comments
Post a Comment