- Intent intent=new Intent(Intent.ACTION_SEND);
- intent.setType("text/plain"); //分享的数据类型
- intent.putExtra(Intent.EXTRA_SUBJECT, "subject"); //主题
- intent.putExtra(Intent.EXTRA_TEXT, "content"); //内容
- startActivity(Intent.createChooser(intent, "title")); //目标应用选择对话框的标题