例如,我想分享这个链接:
http://www.orientaldaily.com.my/index.php?option=com_k2&view=item&id=6780:&Itemid=198
这是代码
private void shareIt() {
Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND);
sharingIntent.setType("text/plain");
String shareBody = "Here is the share content body";
sharingIntent.putExtra(android.content.Intent.EXTRA_SUBJECT,
"Subject Here");
sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, shareBody);
startActivity(Intent.createChooser(sharingIntent, "Share via"));
}
所以,
1)如何让它分享到Facebook的链接?
2)如何编辑共享列表?
答案 0 :(得分:1)
将文本移出系统后,createChooser()
将其移出系统。