ACTION_SEND force sending with email

前端 未结 9 1906
予麋鹿
予麋鹿 2021-02-15 11:37

every time i create an action for sending an email from my app, it prompts to many options including a QR client...

Is there a way to force sending via email clients onl

9条回答
  •  逝去的感伤
    2021-02-15 12:35

    Intent intent = new Intent();
    intent.setAction(Intent.ACTION_VIEW);
    intent.setData(Uri.parse("mailto:?to=email&subject=hello&body=hello%20world"));
    startActivity(Intent.createChooser(intent, "Send via..."));
    

    you can try this:::::

提交回复
热议问题