如何启动用户的默认邮件客户端,默认的窗口(收件箱) [英] How to launch user's default mail client, default window(inbox)
问题描述
好吧,我想从应用重定向用户默认邮件客户端在他的电话。
听说我不能只是使发射邮件应用程序的意图。所以,一般的想法是让可能的应用Intent.Action_Send,和刚开始一个用户与Intent.CreateChooser(...)挑;
Well I want to redirect user from app to default mail client in his phone. I heard that i can't just make intent that launch mailing app. So the general idea is to get possible applications for Intent.Action_Send, and just start one that user picked with Intent.CreateChooser(...);.
但似乎我不能或我不知道怎么去采摘包名。
But it seems that i can't or i don't know how to get picked package name.
推荐答案
所以我做了快woraround我的问题。
我让用户决定是否对ConversationList运行的Gmail,或由他本人开的电子邮件客户端。
我也是从崩溃的时候会有一些手机上没有Gmail客户端保护它。
So i made quick woraround for my problem. I'm letting user decide if to run gmail, on ConversationList, or open email client by himself. I also protected it from crashing when there will be no gmail client on some phone.
这篇关于如何启动用户的默认邮件客户端,默认的窗口(收件箱)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!