How can I send an email through my Exchange ActiveSync mail account?
How can I send an email through my Exchange ActiveSync mail account and not gmail? When I use createchooser only gmail ap开发者_JS百科pears...
Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);
String aEmailList[] = { "me@mail.com" };
emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, aEmailList);
emailIntent.setType("plain/text");
startActivity(Intent.createChooser(emailIntent, "Send email..."));
emailIntent.setType("application/octet-stream");
works for me! :-)
精彩评论