什么都不用 !!!!
只需把这个添加到点击事件中
//分享文字 Intent textIntent = new Intent(Intent.ACTION_SEND); //设置格式,文字 textIntent.setType("text/plain"); //设置分享内容 textIntent.putExtra(Intent.EXTRA_TEXT, list1.get(poss).getData().getSummary()); //标题设置并发送 startActivity(Intent.createChooser(textIntent, "分享"));
//分享图片
Intent imageIntent = new Intent(Intent.ACTION_SEND); imageIntent.setType("image/jpeg"); imageIntent.putExtra(Intent.EXTRA_STREAM, "https://static.oschina.net/uploads/cover/3187891_bpiVm_bi.jpg"); startActivity(Intent.createChooser(imageIntent, "分享"));
http://www.jianshu.com/p/0a0e2258b3d6(具体地址)
http://blog.csdn.net/chadeltu/article/details/43450713(更详细具体地址)