0
首先,我的應用程序的功能是閱讀文章。當用戶閱讀文章並且他想將文章分享給Facebook或其他人時,我無法從類型中找到鏈接/超鏈接。如何分享Facebook,Twitter等鏈接?
這裏是我的共享功能
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"));
}
,我想是分享功能使用計算機時,閱讀文章,並得到了分享按鈕的事情。在共享媒體中,它將顯示爲文章的內容而不是純文本。
那麼,如何編輯代碼以便我可以共享鏈接?
請指導我的Manifest.xml,我不知道interfilter需要增加哪一類了。
其次,我看到因爲我想這些那些的Facebook,新浪網,微博,而不是谷歌,Gmail,藍牙線或消息的共享列表,內置的名單不是對我這麼好。
那麼,如何實現通過Java共享列表?