美文网首页
Android调用系统本身的分享功能

Android调用系统本身的分享功能

作者: 学渣罗小贱 | 来源:发表于2016-08-31 20:44 被阅读38次
Intent shareIntent = new Intent(Intent.ACTION_SEND);
shareIntent.setType("text/plain");
shareIntent.putExtra(Intent.EXTRA_SUBJECT,"分享");
shareIntent.putExtra(Intent.EXTRA_TEXT,"快快下载天农助手,天农人自己的助手");
startActivity(Intent.createChooser(shareIntent,"分享到"));

相关文章

网友评论

      本文标题:Android调用系统本身的分享功能

      本文链接:https://www.haomeiwen.com/subject/xmhcettx.html