Android 分享功能 比如一篇文章通过Gmail,短信,彩信,Twitter这类分享给好友,列子可以参见USA Today有哪位做过这个功能,共享一下,谢谢了 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 用intent调用相应程序就好了比如email:Uri uri = Uri.parse("mailto:[email protected]"); Intent it = new Intent(Intent.ACTION_SENDTO, uri); startActivity(it); Intent it = new Intent(Intent.ACTION_SEND); it.putExtra(Intent.EXTRA_EMAIL, "[email protected]"); it.putExtra(Intent.EXTRA_TEXT, "The email body text"); it.setType("text/plain"); startActivity(Intent.createChooser(it, "Choose Email Client")); Intent it=new Intent(Intent.ACTION_SEND); String[] tos={"[email protected]"}; String[] ccs={"[email protected]"}; it.putExtra(Intent.EXTRA_EMAIL, tos); it.putExtra(Intent.EXTRA_CC, ccs); it.putExtra(Intent.EXTRA_TEXT, "The email body text"); it.putExtra(Intent.EXTRA_SUBJECT, "The email subject text"); it.setType("message/rfc822"); startActivity(Intent.createChooser(it, "Choose Email Client")); 显示可供选择的分享列表,请参见http://blog.csdn.net/grhunter/archive/2009/12/26/5083081.aspx。 如何为alertDialog添加onKeyDown()事件监听? android 在线播放视频如何实现?有哪些方式? 关于手机支付功能实现 Socket is not connected 问题。。 急!求助关于MMITest和工程模式的测试问题. andengine游戏开发中遇到的问题求大神指点 求推荐有什么好的Android方面的书 Android无法在sd卡创建文件 Android 5.0使用CardView 小白,安装Android studio 出现了问题 关于应用程序主界面的问题 OPhone应用开发专题【第二季】
比如email:
Uri uri = Uri.parse("mailto:[email protected]");
Intent it = new Intent(Intent.ACTION_SENDTO, uri);
startActivity(it); Intent it = new Intent(Intent.ACTION_SEND);
it.putExtra(Intent.EXTRA_EMAIL, "[email protected]");
it.putExtra(Intent.EXTRA_TEXT, "The email body text");
it.setType("text/plain");
startActivity(Intent.createChooser(it, "Choose Email Client")); Intent it=new Intent(Intent.ACTION_SEND);
String[] tos={"[email protected]"};
String[] ccs={"[email protected]"};
it.putExtra(Intent.EXTRA_EMAIL, tos);
it.putExtra(Intent.EXTRA_CC, ccs);
it.putExtra(Intent.EXTRA_TEXT, "The email body text");
it.putExtra(Intent.EXTRA_SUBJECT, "The email subject text");
it.setType("message/rfc822");
startActivity(Intent.createChooser(it, "Choose Email Client"));