android 简单调用 系统分享

Intent intent = new Intent(Intent.ACTION_SEND); // 启动分享发送的属性
intent.setType("text/plain"); // 分享发送的数据类型
String msg = "推荐给大家";
intent.putExtra(Intent.EXTRA_TEXT, msg); // 分享的内容
activity.startActivity(Intent.createChooser(intent, "选择分享"));// 目标应用选择对话框的标题 

你可能感兴趣的:(android 简单调用 系统分享)