Intent intent = new Intent(android.content.Intent.ACTION_SEND);
intent.putExtra(android.content.Intent.EXTRA_EMAIL, new String[]{"[email protected]"});
intent.putExtra(android.content.Intent.EXTRA_SUBJECT, "SUBJECT");
intent.putExtra(android.content.Intent.EXTRA_TEXT, "TEXT");
intent.setType("text/html");
startActivity(Intent.createChooser(intent, "Chooser"));在出现的客户端选择中,只有Gmail和蓝牙,没有默认的Email客户端,这是为什么呢?
intent.putExtra(android.content.Intent.EXTRA_EMAIL, new String[]{"[email protected]"});
intent.putExtra(android.content.Intent.EXTRA_SUBJECT, "SUBJECT");
intent.putExtra(android.content.Intent.EXTRA_TEXT, "TEXT");
intent.setType("text/html");
startActivity(Intent.createChooser(intent, "Chooser"));在出现的客户端选择中,只有Gmail和蓝牙,没有默认的Email客户端,这是为什么呢?
解决方案 »
- 菜鸟求教,android-serialport-api导入eclipse工程
- TableLayout里的元素为什么宽度没有占满父控件
- eclipse里面layout的xml文件无法打开,求助!
- android中怎样解析Json
- android 高手进
- android中button动态布局
- android 多个SD卡检测
- 安卓程序无错,在模拟器上运行停止
- Android Recyclerview 中嵌套 EditText
- Android Studio-- The path is not writable. Please choose a new location
- android HttpRespons 频繁的连接请求 死机
- 手机连上Wifi,只可以上QQ,其他网页之类的都不行
android发送邮件有两种方式,
一种就是你用的方法,用gmail,直接用intent来实现
另一种是用java的方式发送邮件,要设置pop,账户,密码等
貌似不是这样吧。只要是标明了 android.content.Intent.ACTION_SEND 这种样式的activity,到时都能在选择例表中吧。