public static void shareToOtherApp(Context context,String title,String content, String dialogTitle ) {
Intent intentItem = new Intent(Intent.ACTION_SEND);
intentItem.setType("text/plain");
intentItem.putExtra(Intent.EXTRA_SUBJECT, title);
intentItem.putExtra(Intent.EXTRA_TEXT, content);
intentItem.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(Intent.createChooser(intentItem, dialogTitle));
}
android调用系统分享
最新推荐文章于 2019-02-12 09:59:42 发布