【发布时间】:2018-05-19 00:51:52
【问题描述】:
当我尝试使用带有选择器的意图发送图片时,它正在使用 gmail,但不能使用其他邮件客户端 (TypeApp)。
这很奇怪,因为当我尝试使用其他应用程序共享图片时,它无处不在,包括 TypeApp 邮件客户端。也许他们使用了另一种额外的类型?
也许额外的EXTRA_STREAM 不正确?
这是我的意图:
Intent emailIntent = new Intent(Intent.ACTION_SENDTO, Uri.fromParts(
"mailto",getIntent().getStringExtra("mail"), null));
emailIntent .putExtra(Intent.EXTRA_STREAM, Uri.parse("file://" + filePath));
startActivity(Intent.createChooser(emailIntent, "Send a mail..."));
【问题讨论】:
标签: android email android-intent