Android - getting an error “no application can perform this action” while trying to send an email?

巧了我就是萌 提交于 2019-12-05 01:27:18

I think you need to set the type of the intent object. Can you try the following

emailIntent.setType("message/rfc822");

or

emailIntent.setType("text/plain");

If someone's trying to do this from XML preferences, I accomplished this by adding in the Preference element an intent with as action ACTION_SENDTO and as data mailto:your.email@domain.com. Hope this could help someone.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!