打开文本信息放入放置一个随机数组

当我点击一个数组时,程序会随机生成一个字符串。我想知道有什么方法(如果用户选择它)
打开文本信息并把创建的字符串放到里面。因此现在就是要把这个字符串发送给他们选择的对象?

使用代码:

 Intent sendIntent = new Intent(Intent.ACTION_VIEW);
                    sendIntent.putExtra("sms_body", "Content of the SMS goes here..."); 
                    sendIntent.setType("vnd.android-dir/mms-sms");
                    startActivity(sendIntent);