Answers for "send sms programmatically android"

1

send sms programmatically android

Intent intent = new Intent( Intent.ACTION_VIEW, Uri.parse( "sms:" + srcNumber)); 
                    intent.putExtra( "sms_body", message ); 
                    startActivity(intent);
Posted by: Guest on October-29-2020
0

how to open sms app on android programmatically

Intent intent = new Intent( Intent.ACTION_VIEW);
                intent.setData(Uri.parse("smsto:" + Uri.encode(phoneNumber)));
                intent.putExtra( "sms_body", "" );
                startActivity(intent);
Posted by: Guest on April-26-2021

Browse Popular Code Answers by Language