📜  有意发送电子邮件 - Kotlin 代码示例

📅  最后修改于: 2022-03-11 14:53:32.586000             🧑  作者: Mango

代码示例1
val to = "android@google.com.tr"
val subject = "Feedback"
val mailTo = "mailto:" + to + "?&subject=" + Uri.encode(subject)
val emailIntent = Intent(Intent.ACTION_VIEW)
emailIntent.data = Uri.parse(mailTo)
startActivity(emailIntent)