测试时候用的genymotion 发现一发送邮件就崩溃了
一百度发现
在调用系统EMAIL发从邮件时,如果手机没有能接受SENDTO和mailto的应用,将会出现如下崩溃,特别是一些国行手机,这些手机里面没有安卓原生GMAIL.
Caused by: android.content.ActivityNotFoundExceptio
n: No Activity found to handle Intent { act=android.intent.action.SENDTO dat=mailto:xxxx@xxx.xxx }
感觉还是try catch 比较靠谱 不能正常吊起邮件app 那就告诉用户请下载邮箱app吧