I want to send an SMS via intent, but when I use this code, it redirects me to a wrong contact: Intent intentt = new Intent(Intent.ACTION_VIEW); intentt.setData(Uri.parse("sms:")); intentt.setType("vnd.android-dir/mms-sms"); intentt.putExtra(Intent.EXTRA_TEXT, ""); intentt.putExtra("address", phone number); context.startActivity(intentt); Why? Also, I know a way to follow SMS sending, but I do not know how code this: Starting activity: Intent {...
Originally asked by Ata on Stack Exchange (stackoverflow) (CC BY-SA 4.0).