文字列s5、s6、s7、s8をsmsに追加したいのですが、アンドロイドで実行されたアクションの後にメッセージs5、 s5までどのようにSMSを介してすべての文字列を送信することができます文字列s5、s6、s7、s8をsmsに追加します。android
String s = n.getText().toString();
String s1 = ci.getText().toString();
String s2 = cn.getText().toString();
String s3 = sr.getSelectedItem().toString();
String s4 = mn.getText().toString();
String s5 = ml.getText().toString();
String s6 = spt.getSelectedItem().toString();
String s7 = sui.getSelectedItem().toString();
String s8 = d.getText().toString();
SmsManager sms = SmsManager.getDefault();
sms.sendTextMessage("phone number", null,
"Name:" + s +
"\nCollege id:" + s1 +
"\nContact no:" + s2 +
"\nYour Role:" + s3 +
"\nMachine Number:" + s4 +
"\nMachine Location:" + s5 +
"\nMachine Location:" + s6 +
"\nproblemDescription:" + s7 +
"\nroleCombobox:" + s8
, sentPI, deliveredPI);
s6とs7の後ろに '+ 'がありません – samgak