Java tutorial
//package com.java2s; import android.content.Intent; import android.net.Uri; public class Main { public static Intent getSendSmsIntent(String phoneNumber, String content) { Uri uri = Uri.parse("smsto:" + phoneNumber); Intent intent = new Intent(Intent.ACTION_SENDTO, uri); intent.putExtra("sms_body", content); return intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); } }