Hello all,
How can I send a SMS and the contact person will appear in the "To"
input field?
Until now I have managed to insert his phone to the "To" input, but
when I send his name or contact id I don’t get the DISPLAY_NAME
Intent sendIntent = new Intent(Intent.ACTION_SENDTO);
sendIntent.setType("vnd.android-dir/mms-sms");
sendIntent.setData(Uri.parse("smsto:"+
ContentUris.withAppendedId(ContactsContract.Contacts.CONTENT_URI,
long_Contactid)));
//sendIntent.putExtra("address", phoneNumber); Display the actual
phone
Have a nice day
Nir
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en