听到我的代码
@Click
public void btnSubmit() {
if (validateInput()) {
Intent send = new Intent(Intent.ACTION_SENDTO);
send.setClassName("com.google.android.gm", "com.google.android.gm.ComposeActivityGmail");
String uriText = "mailto:" + Uri.encode("sorathiya.payal1994@gmail.com") +
"?subject=" + Uri.encode(edtName.getText().toString()) +
"&body=" + Uri.encode(edtMessage.getText().toString());
Uri uri = Uri.parse(uriText);
send.setData(uri);
startActivity(send);
Toast.makeText(getContext(), "Thank You For Feedback", Toast.LENGTH_SHORT).show();
}
}
在上面的代码G邮件作曲家打开,我只在我的应用程序中发送电子邮件,反馈在后台发送,我该怎么办?