如何进行原生分享
(最好直接查看原文)
转载:http://www.jianshu.com/p/88f166dd43b7
Intent share_intent = new Intent();
share_intent.setAction(Intent.ACTION_SEND);//设置分享行为
share_intent.setType("text/plain");//设置分享内容的类型
share_intent.putExtra(Intent.EXTRA_SUBJECT, contentTitle);//添加分享内容标题
share_intent.putExtra(Intent.EXTRA_TEXT, content);//添加分享内容
//创建分享的Dialog
share_intent = Intent.createChooser(share_intent, dialogTitle);
activity.startActivity(share_intent);