android中调用分享程序的代码
Intent intent=new Intent(Intent.ACTION_SEND);
intent.setType("text/plain");
intent.putExtra(Intent.EXTRA_SUBJECT,data.get(mPosition).getTitle());
intent.putExtra(Intent.EXTRA_TEXT, data.get(mPosition).getText());
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(Intent.createChooser(intent, "分享"));