Skip to content Skip to sidebar Skip to footer

Button Click Textview Text To Android Inbuilt Messaging App

how to set my editText text into android inbuilt messaging app compose activity. here i am having code to jump from one activity to another, how to set my edittext text into inbuil

Solution 1:

Send a message:

Intentintent=newIntent(Intent.ACTION_VIEW, Uri.parse("sms:"));        

 intent.putExtra("sms_body", yourEditTextString);
 startActivity(intent);

To add a phone number :

Intentintent=newIntent(Intent.ACTION_VIEW, Uri.parse("sms:" + phoneNumber)); 

Post a Comment for "Button Click Textview Text To Android Inbuilt Messaging App"