ACTION_SEND force sending with email

前端 未结 9 1901
予麋鹿
予麋鹿 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:26

    String rec[] = { owner.email };
    i = new Intent(Intent.ACTION_SEND);
    i.setType("message/rfc822") ;
    i.putExtra(android.content.Intent.EXTRA_EMAIL, rec);
    i.putExtra(android.content.Intent.EXTRA_SUBJECT, "RE: " + desc);
    i.putExtra(android.content.Intent.EXTRA_TEXT,
            "\n\n\nSent from Mojo for Android");
    startActivity(i);
    

    try this;:::

提交回复
热议问题