Show compose SMS view in Android

You can use the following code: startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(“sms:” + phoneNumber))); Make sure you set phoneNumber to the phone number that you want to send the message to You can add a message to the SMS with (from comments): Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(“sms:” + phoneNumber)); intent.putExtra(“sms_body”, message); startActivity(intent);

Can we delete an SMS in Android before it reaches the inbox?

Yes. Despite some negative reactions to this question, there are legitimate uses for SMS interception. For example: automating phone number verification, services which are provisioned via SMS (though generally this should be done with data SMS), or for applications which otherwise improve the user experience by processing specially-formatted messages in order to show them in … Read more

Android – Listen For Incoming SMS Messages

public class SmsListener extends BroadcastReceiver{ private SharedPreferences preferences; @Override public void onReceive(Context context, Intent intent) { // TODO Auto-generated method stub if(intent.getAction().equals(“android.provider.Telephony.SMS_RECEIVED”)){ Bundle bundle = intent.getExtras(); //—get the SMS message passed in— SmsMessage[] msgs = null; String msg_from; if (bundle != null){ //—retrieve the SMS message received— try{ Object[] pdus = (Object[]) bundle.get(“pdus”); msgs = … Read more