现在我想分享一段文本,下面是我的代码链接
String myText = "Hey!\nThis is a my Text!";
Intent share = new Intent(Intent.ACTION_SEND);
share.setType("text/plain");
String extraText = "www.mylink.com\n\n" + myText ;
share.putExtra(Intent.EXTRA_TEXT, extraText);
startActivity(Intent.createChooser(share, "Share with Friends"));
它可以与Gmail、Twitter等良好地配合使用,但在Facebook上无法正常工作。
在Facebook上,它只分享链接,但我的文本并没有显示出来。
我希望实现这种类型的分享。
www.mylink.com
here is my text
任何帮助都将不胜感激,提前致谢。