怎么用Android原生的分享功能分享链接啊。希望实现分享到微信。QQ。还有微博。点击分享内容可以跳转到所分享的网址
5条回答 默认 最新
耳日阳 2016-05-03 07:42关注Intent share_intent = new Intent();
share_intent.setAction(Intent.ACTION_SEND);
share_intent.setType("text/plain");
share_intent.putExtra(Intent.EXTRA_SUBJECT, "f分享");
share_intent.putExtra(Intent.EXTRA_TEXT, "HI 推荐您使用一款软件:" + appName);
share_intent = Intent.createChooser(share_intent, "分享");
startActivity(share_intent);解决 无用评论 打赏 举报