Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经设法使用 linkify 设置了电子邮件的启动,并且我还学习了如何使用主题集创建一个意图,并通过调用 startActivity 并指定该意图来发送电子邮件。
但是,我的问题是如何让 linkify 启动我创建的意图 - 以设置主题。
如果主题是固定的(即,您正在声明它),您应该能够使用自己的addLinks()主题并为您喜欢的任何模式创建链接,并将该部分包含在链接中。LinkifyMatchFilterTransformFiltermailto:?subject=...
addLinks()
Linkify
MatchFilter
TransformFilter
mailto:
?subject=...