android 使用分享功能

 

简单的调用系统的 分享发送 intent 

 

Intent it=new Intent(Intent.ACTION_SEND);
it.putExtra(Intent.EXTRA_TEXT, "分享内容");
it.putExtra(Intent.EXTRA_SUBJECT, "标题");
it.setType("text/plain");
startActivity(Intent.createChooser(it, "请选择分享方式"));

你可能感兴趣的:(android)